Re: BUG #3732: Select returns 0 rows for varchar field - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #3732: Select returns 0 rows for varchar field
Date
Msg-id 20071109143546.GK2768@alvh.no-ip.org
Whole thread Raw
In response to BUG #3732: Select returns 0 rows for varchar field  ("George Woodman" <georgew@computerspecialists.co.za>)
List pgsql-bugs
George Woodman wrote:

> I have 2 records with the following details:
> george,George,george,developer
> 1234567890,Temp,0,developer
> When I try to retrieve this record with the following statement from a
> ASP.Net (VB) app I get no rows returned.
> Select * from user_control where uci = 'george'
> However this statement works.
> Select * from user_control where uci = '1234567890'

Are you sure 'george' does not have whitespace at the end?  My bet is
that it is actually 'george    '

--
Alvaro Herrera                 http://www.amazon.com/gp/registry/CTMLCN8V17R4
"Postgres is bloatware by design: it was built to house
 PhD theses." (Joey Hellerstein, SIGMOD annual conference 2002)

pgsql-bugs by date:

Previous
From: Pedro Gimeno
Date:
Subject: Revisiting BUG #3684: After dump/restore, schema PUBLIC always exists
Next
From: "Ben Leslie"
Date:
Subject: BUG #3734: Invalid XML schema output.