diff options
author | unknown <konstantin@mysql.com> | 2004-09-08 12:33:05 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-09-08 12:33:05 +0400 |
commit | e5af92b0d21b9a0cbc55531dd2580709d503befd (patch) | |
tree | 6113d3613407058e37ca56ab85c7c3153c770a0a /sql/sql_class.cc | |
parent | eb72c28b9b8e7fe785e918cc1c366b4fce6fa8f6 (diff) | |
download | mariadb-git-e5af92b0d21b9a0cbc55531dd2580709d503befd.tar.gz |
A fix and test case for bug#5399 "Wrong statement executed by MySQL
server" (use my_charset_bin for stmt id hash).
sql/sql_class.cc:
Fix for bug#5399 "Wrong statement executed by MySQL server":
we hash stmt ids bytewise, need to use binary collation for it.
tests/client_test.c:
Test case for bug#5399 "Wrong statement executed by MySQL server":
create number of statements returning different results, execute them
one by one.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index b103ee29095..2d6c778fab4 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1502,7 +1502,7 @@ Statement_map::Statement_map() : START_STMT_HASH_SIZE = 16, START_NAME_HASH_SIZE = 16 }; - hash_init(&st_hash, default_charset_info, START_STMT_HASH_SIZE, 0, 0, + hash_init(&st_hash, &my_charset_bin, START_STMT_HASH_SIZE, 0, 0, get_statement_id_as_hash_key, delete_statement_as_hash_key, MYF(0)); hash_init(&names_hash, system_charset_info, START_NAME_HASH_SIZE, 0, 0, |