Re: BUG #3732: Select returns 0 rows for varchar field

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #3732: Select returns 0 rows for varchar field
Дата
Msg-id 20071109143546.GK2768@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #3732: Select returns 0 rows for varchar field  ("George Woodman" <georgew@computerspecialists.co.za>)
Список 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 по дате отправления:

Предыдущее
От: Pedro Gimeno
Дата:
Сообщение: Revisiting BUG #3684: After dump/restore, schema PUBLIC always exists
Следующее
От: "Ben Leslie"
Дата:
Сообщение: BUG #3734: Invalid XML schema output.