diff options
author | gluh@eagle.intranet.mysql.r18.ru <> | 2005-10-18 14:25:03 +0500 |
---|---|---|
committer | gluh@eagle.intranet.mysql.r18.ru <> | 2005-10-18 14:25:03 +0500 |
commit | 7ccf86124211e15ab62e9bc5e9637153a4d00ec5 (patch) | |
tree | 494520a82b86409fc03fbb671264a59ec9fee849 /client | |
parent | 7a57b741cada3c7934e4115807ae6d23d98a1f7f (diff) | |
download | mariadb-git-7ccf86124211e15ab62e9bc5e9637153a4d00ec5.tar.gz |
Fix for bug#13783 mysqlcheck tries to optimize and analyze information_schema
'information_schema' is excluded from list of databases for mysqlcheck command
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlcheck.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 35d57e0394e..2eb3e55c2e9 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -497,6 +497,9 @@ static int process_all_tables_in_db(char *database) static int use_db(char *database) { + if (mysql_get_server_version(sock) >= 50003 && + !my_strcasecmp(&my_charset_latin1, database, "information_schema")) + return 1; if (mysql_select_db(sock, database)) { DBerror(sock, "when selecting the database"); |