summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-03-16 21:55:10 +0400
committerAlexander Barkov <bar@mariadb.org>2015-03-16 21:55:10 +0400
commite6f67c64cda4e4ca4f1463ae65f301358ed356a7 (patch)
treefe952ce152ae5383966b8761756cd59cdd86dc44 /include
parent4cb86b79dd61b51ab09811a8c5ef383a16638fc9 (diff)
downloadmariadb-git-e6f67c64cda4e4ca4f1463ae65f301358ed356a7.tar.gz
MDEV-6572 "USE dbname" with a bad sequence erroneously connects to a wrong database
Diffstat (limited to 'include')
-rw-r--r--include/m_ctype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h
index 7df59488029..8300619d5c7 100644
--- a/include/m_ctype.h
+++ b/include/m_ctype.h
@@ -889,6 +889,10 @@ uint32 my_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs,
cannot be represented in the destination character set was found,
or to NULL if all characters in the given range were successfully
converted.
+
+ "src" is allowed to be a NULL pointer. In this case "src_length" must
+ be equal to 0. All "status" members are initialized to NULL, and 0 is
+ returned.
*/
size_t my_convert_fix(CHARSET_INFO *dstcs, char *dst, size_t dst_length,
CHARSET_INFO *srccs, const char *src, size_t src_length,