PostgreSQL 8.3.7: soundex function returns UTF-16 characters
В списке pgsql-bugs по дате отправления:
| От | Frans |
|---|---|
| Тема | PostgreSQL 8.3.7: soundex function returns UTF-16 characters |
| Дата | |
| Msg-id | 49DA1ABA.8090900@geodan.nl обсуждение исходный текст |
| Ответы |
Re: PostgreSQL 8.3.7: soundex function returns UTF-16 characters
|
| Список | pgsql-bugs |
Hello,
We have just discovered a problem with the soundex function in
PostgreSQL 8.3.7. The problem is easy to reproduce. The following query
returns the ASCII code of the soundex representation of the Greek letter Pi:
select ascii (soundex('Î '));
In PostgreSQL 8.2.6 the result would be 0 (character null). In
PostgreSQL 8.3.7 the return value is 944, which is the UTF-16 code of
this letter. Because PostgreSQL does not support UTF-16, this behaviour
causes problems when the return values from the soundex function are
stored in a database column. For instance, creating an index on such a
column or doing VACUUM FULL on the table results in errors like:
ERROR: could not convert string to UTF-16
Regards,
Frans
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера