| От | Tom Lane |
|---|---|
| Тема | Re: [BUGS] BUG #14512: Backslashes in LIKE |
| Дата | |
| Msg-id | 23478.1485280945@sss.pgh.pa.us обсуждение |
| Ответ на | [BUGS] BUG #14512: Backslashes in LIKE (vojta.rylko@gmail.com) |
| Ответы |
Re: [BUGS] BUG #14512: Backslashes in LIKE
|
| Список | pgsql-bugs |
vojta.rylko@gmail.com writes:
> Hi, LIKE behaves differently depending on left side.
>> select 1 where '\' like '\\\'; -- one and three backslashes
> ?column?
> ----------
> (0 rows)
>> select 1 where '\\' like '\\\'; -- two and three backslashes
> ERROR: LIKE pattern must not end with escape character
I see no bug here. The pattern is wrong, but it happens not to notice in
the first case because it never reaches the buggy part of the pattern.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера