| От | Tom Lane |
|---|---|
| Тема | Bug in ILIKE? |
| Дата | |
| Msg-id | 4318.1222394652@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: Bug in ILIKE?
|
| Список | pgsql-hackers |
Good:
regression=# select 'T' ilike 't';?column?
----------t
(1 row)
Not so good:
regression=# select 'T' ilike E'\\t';?column?
----------f
(1 row)
ISTM backslash is only supposed to turn off the pattern-language
specialness of characters, not render them case sensitive. The reason
this happens is that the backslash case in MatchText() checks for exact
equality. I think it should be checking for TCHAR() equality, same as
when it is just checking two ordinary characters. Comments? Is this a
backpatchable bug fix, or should we only change the behavior for 8.4 and
beyond?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера