Re: Zero-length character breaking query?

Поиск
Список
Период
Сортировка
От Bosco Rama
Тема Re: Zero-length character breaking query?
Дата
Msg-id 4F638FD8.6070206@boscorama.com
обсуждение исходный текст
Ответ на Zero-length character breaking query?  (Doug Gorley <dgorley@aihs.ca>)
Список pgsql-general
Doug Gorley wrote:
>
> "select * from tdt_unsent where str_name_l = 'SMITH'" returns 0 rows.
> "select * from tdt_unsent where str_name_l ~ '^SMITH'" returns 3 rows.
> "select * from tdt_unsent where str_name_l ~ '^SMITH$'" returns 0 rows.
> "select length(str_name_l) from tdt_unsent where str_name_l ~ '^SMITH'" returns "5".

what does the following return?
  select str_name_l::bytea from tdt_unsent where str_name_l ~ '^SMITH';

It should show you any chars that don't usually display in your locale as
hex chars (i.e. \xNN).

Bosco.

В списке pgsql-general по дате отправления:

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Authenticating from a web service call
Следующее
От: Aleksey Tsalolikhin
Дата:
Сообщение: Re: A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?