1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

A fix and test case for Bug#5315 "mysql_change_user() doesn't free

prepared statements."
This commit is contained in:
konstantin@mysql.com
2004-09-22 15:50:07 +04:00
parent e7a70ed162
commit 36548b10ca
8 changed files with 116 additions and 29 deletions

View File

@@ -328,6 +328,7 @@ void THD::change_user(void)
cleanup();
cleanup_done= 0;
init();
stmt_map.reset();
hash_init(&user_vars, &my_charset_bin, USER_VARS_HASH_SIZE, 0, 0,
(hash_get_key) get_var_key,
(hash_free_key) free_user_var, 0);