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

From Robert Haas
Subject pgsql: Fix query-based tab completion for multibyte characters.
Date
Msg-id E1abt3E-0003ZY-WC@gemulon.postgresql.org
Whole thread Raw
List 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_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8de488d009e6280f4b80b634ee0fe79b6b34689e

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


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix the way GetExistingLocalJoinPath is documented.
Next
From: Robert Haas
Date:
Subject: pgsql: Fix query-based tab completion for multibyte characters.