pgsql: Fix query-based tab completion for multibyte characters.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix query-based tab completion for multibyte characters.
Дата
Msg-id E1abt3F-0003Za-00@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix query-based tab completion for multibyte characters.

The existing code confuses the byte length of the string (which is
relevant when passing it to pg_strncasecmp) with the character length
of the string (which is relevant when it is used with the SQL substring
function).  Separate those two concepts.

Report and patch by Kyotaro Horiguchi, reviewed by Thomas Munro and
reviewed and further revised by me.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/54139ac22f274940e5d5477594cd03b7988ca7be

Modified Files
--------------
src/bin/psql/tab-complete.c | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix query-based tab completion for multibyte characters.
Следующее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Improve support of Hunspell in ispell dictionary.