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_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/c658d5a9b6323ce16029fdcdbc6b93acc3c24114 Modified Files -------------- src/bin/psql/tab-complete.c | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
