summaryrefslogtreecommitdiff
path: root/client/mysql.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-12-03 23:06:16 +0200
committerMichael Widenius <monty@askmonty.org>2011-12-03 23:06:16 +0200
commit3e2cb35e11cb5ee6668d538a62a3b32e017944a5 (patch)
treed61d5066513fbbc9ad7944f6125c2636173a258d /client/mysql.cc
parent921004e79dfece9bd4cc4239521b190c82f19560 (diff)
downloadmariadb-git-3e2cb35e11cb5ee6668d538a62a3b32e017944a5.tar.gz
Added handler and temporary table usage to mytop
Fixed prompt on reconnect in mysql client client/mysql.cc: Free server_version for reconnect. This ensures that prompt is correct if reconnecting to a different server. scripts/mytop.sh: Added handler and temporary table usage
Diffstat (limited to 'client/mysql.cc')
-rw-r--r--client/mysql.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 824a416ec36..765c44e49c9 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2780,6 +2780,8 @@ static int reconnect(void)
}
if (!connected)
return put_info("Can't connect to the server\n",INFO_ERROR);
+ my_free(server_version,MYF(MY_ALLOW_ZERO_PTR));
+ server_version= 0;
/* purecov: end */
return 0;
}