summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil@mysql.com>2008-11-14 13:48:01 +0400
committerRamil Kalimullin <ramil@mysql.com>2008-11-14 13:48:01 +0400
commitcba2743336055163874f6aec273f920ee0df5b11 (patch)
tree1992a3b85335202efceda500a25717c05118e864 /client
parent52b90054a71e78ee25ed3d6b9e8374d22ae67a0b (diff)
parentdbc062bf2c5fe8a38151e72eb7a3c110da6d856b (diff)
downloadmariadb-git-cba2743336055163874f6aec273f920ee0df5b11.tar.gz
Auto-merge
Diffstat (limited to 'client')
-rw-r--r--client/mysqlcheck.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index e71cf70d882..17ebca497e4 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -517,9 +517,14 @@ static int process_all_tables_in_db(char *database)
LINT_INIT(res);
if (use_db(database))
return 1;
- if (mysql_query(sock, "SHOW /*!50002 FULL*/ TABLES") ||
- !((res= mysql_store_result(sock))))
+ if ((mysql_query(sock, "SHOW /*!50002 FULL*/ TABLES") &&
+ mysql_query(sock, "SHOW TABLES")) ||
+ !(res= mysql_store_result(sock)))
+ {
+ my_printf_error(0, "Error: Couldn't get table list for database %s: %s",
+ MYF(0), database, mysql_error(sock));
return 1;
+ }
num_columns= mysql_num_fields(res);