]> granicus.if.org Git - postgresql/commit
Fix query-based tab completion for multibyte characters.
authorRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2016 16:53:20 +0000 (11:53 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2016 16:57:31 +0000 (11:57 -0500)
commit54139ac22f274940e5d5477594cd03b7988ca7be
tree593bcdff8acea4b6649df38c7a8ef25d266f28d1
parentff4527408c0d469d2c2b0134940cc51191ff5965
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.
src/bin/psql/tab-complete.c