backslashes in queries containing LIKE

Поиск
Список
Период
Сортировка
От Mickael Faivre-Macon
Тема backslashes in queries containing LIKE
Дата
Msg-id f132f7e30501260544197a9e1d@mail.gmail.com
обсуждение исходный текст
Ответы Re: backslashes in queries containing LIKE  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Hi,

We have a problem with backslashes in queries containing LIKE.

insert into table (field) values ('IM\\test')
select * from table where field = 'IM\\test'

returns one record

select * from table where field LIKE 'IM\\%'

returns no record

Why is postgres behaves like that ?
Can someone help us ?

Scripts for testing purpose have been attached.

Mickael Faivre-Macon.

Вложения

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

Предыдущее
От: "Carlos Oliva"
Дата:
Сообщение: Re: Size of data stored in bytea record?
Следующее
От: "Frank D. Engel, Jr."
Дата:
Сообщение: Re: Extended unit