
November 28th, 2012, 05:40 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
length() is only defined for character values.
One major change in 8.3 was to remove many of the implicit data type conversions (if you hadn't waited that long to upgrade you'd noticed earlier  )
The best way to fix this, is to make sure you are calling the function with the correct data type.
See the release notes for more details: http://www.postgresql.org/docs/8.3/static/release-8-3.html#AEN87992
__________________
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
http://forums.devshed.com/misc.php?do=bbcode#code
Tips on how to ask better questions:
http://tkyte.blogspot.de/2005/06/how-to-ask-questions.html
http://wiki.postgresql.org/wiki/SlowQueryQuestions
http://catb.org/esr/faqs/smart-questions.html
Last edited by shammat : November 28th, 2012 at 05:44 AM.
|