1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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
This commit is contained in:
Michael Widenius
2011-12-03 23:06:16 +02:00
parent 921004e79d
commit 3e2cb35e11
2 changed files with 38 additions and 2 deletions

View File

@ -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;
}