diff options
author | unknown <ram@gw.mysql.r18.ru> | 2003-12-16 17:39:33 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2003-12-16 17:39:33 +0400 |
commit | 96636daf674aff9b744fb7f0a501a0cff36c9921 (patch) | |
tree | 660f505bb2dce4c0702b3e56b69e6c82af2a30fa /sql/table.cc | |
parent | 029e30b4aa357708bdbf924cfd78069fb19382bb (diff) | |
download | mariadb-git-96636daf674aff9b744fb7f0a501a0cff36c9921.tar.gz |
proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly.
note: bar asked me to use res.charset in ::sql_type() functions to be more consistent.
mysql-test/r/type_enum.result:
proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
mysql-test/t/type_enum.test:
proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
sql/field.cc:
proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
sql/sql_show.cc:
proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
sql/table.cc:
proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc index e87cafd5275..7c12762d9c4 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1058,9 +1058,21 @@ ulong next_io_size(register ulong pos) } /* next_io_size */ - /* Store in String an SQL quoted string */ +/* + Store an SQL quoted string. + + SYNOPSIS + append_unescaped() + res result String + pos string to be quoted + length it's length + + NOTE + This function works correctly with utf8 or single-byte charset strings. + May fail with some multibyte charsets though. +*/ -void append_unescaped(String *res,const char *pos, uint length) +void append_unescaped(String *res, const char *pos, uint length) { const char *end= pos+length; res->append('\''); |