Can not match 0 on bytea

Поиск
Список
Период
Сортировка
От seiliki@so-net.net.tw
Тема Can not match 0 on bytea
Дата
Msg-id 20100227090548.78807F4809C@m5.so-net.net.tw
обсуждение исходный текст
Ответы Re: Can not match 0 on bytea  ("Daniel Verite" <daniel@manitou-mail.org>)
Re: Can not match 0 on bytea  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi!

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;

ERROR:  invalid byte sequence for encoding "UTF8": 0x00
HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is
controlledby "client_encoding". 

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Automatic index advisor?
Следующее
От: seiliki@so-net.net.tw
Дата:
Сообщение: regexp_replace: LF, CR, or tab