Re: [BUGS] BUG #14512: Backslashes in LIKE

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [BUGS] BUG #14512: Backslashes in LIKE
Дата
Msg-id CAKFQuwb4Gto90tOJE8HNCBpHDXiKCKGXFRoR+eht-YBWHKA-4g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #14512: Backslashes in LIKE  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: [BUGS] BUG #14512: Backslashes in LIKE  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
On Tue, Jan 24, 2017 at 10:32 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Tue, Jan 24, 2017 at 10:25 AM, <vojta.rylko@gmail.com> wrote:
The following bug has been logged on the website:

Bug reference:      14512
Logged by:          Vojtěch Rylko
Email address:      vojta.rylko@gmail.com
PostgreSQL version: 9.5.5
Operating system:   Linux 3.19.0-32-generic x86_64
Description:

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


​The right-hand side is the "pattern" - i.e., <\\\> - which ends with the escape...

​Never mind - I was multi-tasking and mis-read what you wrote...

I'll give it more attention when I have a moment if no one else chimes in first.

David J.​

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14511: Set timezone to local
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [BUGS] BUG #14511: Set timezone to local