Re: Problem with || and data types
2003-04-30 23:41:45 GMT
Folks, I've figured out the problem here... When I have a where clause that contains "x=(select x from y where z) || 'test'" it's interpreting this as "(x=(select x from y where z)) || 'test'" instead of "x=((select x from y where z) || 'test')". This looks like a change from 7.2.1 to 7.3.2. Shouldn't the = operator have pretty much the lowest precedence of any operator? Thanks, Peter Darley -----Original Message----- From: pgsql-general-owner <at> postgresql.org [mailto:pgsql-general-owner <at> postgresql.org]On Behalf Of Peter Darley Sent: Wednesday, April 30, 2003 12:51 PM To: Pgsql-General Subject: [GENERAL] Problem with || and data types Friends, I've got a very bizarre and frustrating problem with concatenation and data types. I have a query that doesn't have a single piece of Boolean data in it, but gives me an error that mentions a bool: UPDATE Import_Items SET Name=(SELECT QT.Import_As FROM Question_Types QT, Border_Type_Translation BTT WHERE QT.Value=BTT.First_Type AND BTT.Second_Type=Border_Questions.Type) || ':' || Border_Questions.Field_Name FROM Border_Questions WHERE 'Quantum_' || Border_Questions.Question_ID = Import_Items.Foreign_Key AND Import_Items.Name <>(SELECT QT.Import_As FROM Question_Types QT, Border_Type_Translation BTT WHERE QT.Value=BTT.First_Type AND BTT.Second_Type=Border_Questions.Type) || ':' || Border_Questions.Field_Name(Continue reading)
RSS Feed