Adrian Klaver
2013-02-06 04:40:18 UTC
G'day,
I hope to be shown to be an idiot, but we are receiving the message
ERROR: invalid input syntax for integer: ""
when using a pl/pgsl function with some quite complex queries that seem to be working on a developer machine using postgresql 9.1.6, but not on the production machine using 9.1.7.
...
FROM reports rep
LEFT JOIN results res
ON res.reportid = rep.id <== this line is causing the error to be returned
AND res.resulttypeid = 108
AND res.del = false
…
Given that the join is between two integer columns, how could it be an invalid syntax for one of them?
Given the query is working on one machine (using a copy of the database downloaded and imported from the second machine last night) running 9.1.6, is there any reason it wouldn't work on the original machine - have there been any changes in casting that I didn't notice between 9.1.6 and 9.1.7?
I am not seeing anything obvious.I hope to be shown to be an idiot, but we are receiving the message
ERROR: invalid input syntax for integer: ""
when using a pl/pgsl function with some quite complex queries that seem to be working on a developer machine using postgresql 9.1.6, but not on the production machine using 9.1.7.
...
FROM reports rep
LEFT JOIN results res
ON res.reportid = rep.id <== this line is causing the error to be returned
AND res.resulttypeid = 108
AND res.del = false
…
Given that the join is between two integer columns, how could it be an invalid syntax for one of them?
Given the query is working on one machine (using a copy of the database downloaded and imported from the second machine last night) running 9.1.6, is there any reason it wouldn't work on the original machine - have there been any changes in casting that I didn't notice between 9.1.6 and 9.1.7?
Is there a chance the import to the second machine did not go well?
Have you looked at the values for id and reportid to see if they look
alright?
cheers
Ben
Ben
--
Adrian Klaver
***@gmail.com
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Adrian Klaver
***@gmail.com
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general