Re: [SQL] weird situation, BUG or I'm not doing it right

2002-08-26 Thread Jiaqing Wang
oss J. Reedstrom Sent: Saturday, August 24, 2002 9:28 PM To: Jiaqing Wang Cc: [EMAIL PROTECTED] Subject: Re: [SQL] weird situation, BUG or I'm not doing it right On Sat, Aug 24, 2002 at 10:56:31PM -0700, Jiaqing Wang wrote: > Hello, > > I found below situation weird, it seems to me

Re: [SQL] weird situation, BUG or I'm not doing it right

2002-08-25 Thread Tom Lane
"Michael Paesold" <[EMAIL PROTECTED]> writes: > It seems that when comparing char with text, the comparision is done > as text, not as bpchar. Yup. Arguably this is a bad idea: the system ought to reject the comparison entirely, and make you cast one side or the other so that it's clear to all c

Re: [SQL] weird situation, BUG or I'm not doing it right

2002-08-25 Thread Michael Paesold
Ross J. Reedstrom wrote: > On Sat, Aug 24, 2002 at 10:56:31PM -0700, Jiaqing Wang wrote: > > Hello, > > > > I found below situation weird, it seems to me a bug. > > > > backend=> select * from valid_addr where state_abrev=upper('pr'); > > zip_code | city_name | state_abrev > > --+---