Re: [HACKERS] Strange query behavior where clause produces odd behavior on '>' query

2008-10-30 Thread Dann Corbit
> -Original Message- > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 30, 2008 6:34 PM > To: Dann Corbit > Cc: [HACKERS]; Sherry Griffin > Subject: Re: [HACKERS] Strange query behavior where clause produces odd > behavior on '>'

Re: [HACKERS] Strange query behavior where clause produces odd behavior on '>' query

2008-10-30 Thread Tom Lane
"Dann Corbit" <[EMAIL PROTECTED]> writes: >> What encoding/locale are you using? > Whatever the default encoding/locale is. "Whatever" is the wrong answer here. I just finished verifying that the sort order you're complaining about is the expected ordering in some locales. I suggest that you

Re: [HACKERS] Strange query behavior where clause produces odd behavior on '>' query

2008-10-30 Thread Dann Corbit
> -Original Message- > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 30, 2008 5:31 PM > To: Dann Corbit > Cc: [HACKERS]; Sherry Griffin > Subject: Re: [HACKERS] Strange query behavior where clause produces odd > behavior on '>'

Re: [HACKERS] Strange query behavior where clause produces odd behavior on '>' query

2008-10-30 Thread Tom Lane
"Dann Corbit" <[EMAIL PROTECTED]> writes: > The following query: > SELECT * FROM Customers_connxstore where customerid > 'specd' > Returns the row containing Customers_connxstore.customerid == 'SPECD' What encoding/locale are you using? And while I'm asking, which PG version?

[HACKERS] Strange query behavior where clause produces odd behavior on '>' query

2008-10-30 Thread Dann Corbit
The following query: SELECT * FROM Customers_connxstore where customerid > 'specd' Returns the row containing Customers_connxstore.customerid == 'SPECD' I would expect to get that row if the query was: SELECT * FROM Customers_connxstore where customerid >= 'specd' The other operators (<, <=, >,