summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 7a84ec8cf40..90df546babf 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -3063,6 +3063,12 @@ void do_change_user(struct st_command *command)
sizeof(change_user_args)/sizeof(struct command_arg),
',');
+ if (cur_con->stmt)
+ {
+ mysql_stmt_close(cur_con->stmt);
+ cur_con->stmt= NULL;
+ }
+
if (!ds_user.length)
dynstr_set(&ds_user, mysql->user);