| От | Tom Lane |
|---|---|
| Тема | Re: BUG: ILIKE with single-byte encoding |
| Дата | |
| Msg-id | 24984.1204342099@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG: ILIKE with single-byte encoding (Rolf Jentsch <RJentsch@electronicpartner.de>) |
| Список | pgsql-bugs |
Rolf Jentsch <RJentsch@electronicpartner.de> writes:
> With PostgreSQL 8.3.0 the following bug has been introduced with the ILIKE or
> ~~* operator:
> In a database with single-byte encoding as LATIN1 the expression
> SELECT 'aü' ILIKE '%ü';
> returns false.
> For the single-byte case there are some places where a (signed) char
> value is compared to the return value auf tolower() which is an int.
Patch applied, thanks! It turns out there was a second bug on the very
same line: some machines have problems if the argument of tolower()
isn't explicitly cast to unsigned char ...
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера