Re: Strange query behavior where clause produces odd behavior on '>' query - Mailing list pgsql-hackers

From Dann Corbit
Subject Re: Strange query behavior where clause produces odd behavior on '>' query
Date
Msg-id D425483C2C5C9F49B5B7A41F89441547010011EF@postal.corporate.connx.com
Whole thread Raw
In response to Re: Strange query behavior where clause produces odd behavior on '>' query  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Strange query behavior where clause produces odd behavior on '>' query
List pgsql-hackers
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> 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 '>' query
>
> "Dann Corbit" <DCorbit@connx.com> 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?

Whatever the default encoding/locale is.
I did not define any custom encoding, locale, or collating sequence.

> And while I'm asking, which PG
> version?

All versions from PostgreSQL 7.1.3 to "PostgreSQL 8.3.3, compiled by
Visual C++ build 1400" seem to display this behavior.
Are you unable to reproduce it?



pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: Sun Studio compiler warnings
Next
From: Tom Lane
Date:
Subject: Re: Strange query behavior where clause produces odd behavior on '>' query