1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-12 12:25:37 +03:00

A fix and test case for bug#5399 "Wrong statement executed by MySQL

server" (use my_charset_bin for stmt id hash).
This commit is contained in:
konstantin@mysql.com
2004-09-08 12:33:05 +04:00
parent dab8918647
commit 3640843a8b
2 changed files with 49 additions and 1 deletions

View File

@@ -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,