I’ve noticed that in older version of PG (example 13)
when I had query like:
select 1 where 1=1and 2=2
all was OK
but i try this in PG 15 I get error: trailing junk after numeric literal at or near "1a"
Have something changed or maybe there is a new option in configuration to make it more strict ?
2
Answers
This was changed in v 15.0.
From the release notes:
and similar
For those looking for a fix in their query:
Make sure you signal that your query is a string.
E.g:
does not work but
does the job.
The problem above is solved by placing a space like so: