Re: Can not match 0 on bytea

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: Can not match 0 on bytea
Дата
Msg-id ae93099e-58c3-4251-868d-89f27d250678@mm
обсуждение исходный текст
Ответ на Can not match 0 on bytea  (seiliki@so-net.net.tw)
Список pgsql-general
     seiliki@so-net.net.tw wrote:

> Data type of table1.c1 is bytea. That column stores binary data. The
> following matchings do not work. What is the right syntax?
>
> TIA
> CN
> ---------------
> select c1 ~ E'\000' from table1;
> select c1 LIKE E'%\000%' from table1;

selection position(E'\\000'::bytea in c1) from table1;
The value is 0 when there is no match and >0 otherwise.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

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

Предыдущее
От: Anton Maksimenkov
Дата:
Сообщение: Re: ERROR: value out of range: underflow
Следующее
От: Osvaldo Kussama
Дата:
Сообщение: Re: regexp_replace: LF, CR, or tab