Skip to content
Snippets Groups Projects
Commit b31eeadc authored by Tom Lane's avatar Tom Lane
Browse files

Force the second argument of SUBSTRING(foo FOR bar) to be int4, to avoid

surprising results when it's some other numeric type.  This doesn't solve
the generic problem of surprising implicit casts to text, but it's a
low-impact way of making sure this particular case behaves sanely.
Per gripe from Harald Fuchs and subsequent discussion.
parent 19cb4571
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment