summaryrefslogtreecommitdiff
path: root/client/mysqlcheck.c
diff options
context:
space:
mode:
authorpeter@linux.local <>2002-06-17 22:07:29 +0400
committerpeter@linux.local <>2002-06-17 22:07:29 +0400
commit1e930341fd991f517115d9ce7aa4639397df7a87 (patch)
treedf0d9dd1ef38c6a0e9aaa0aba37887b5357a4942 /client/mysqlcheck.c
parentb44b485491fe3b9355f918dd506acada2105263e (diff)
downloadmariadb-git-1e930341fd991f517115d9ce7aa4639397df7a87.tar.gz
Allow MySQL check to handle tables with spaces inside
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r--client/mysqlcheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index 78cd277f9be..948f9ca8477 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -463,10 +463,10 @@ static int handle_request_for_tables(char *tables, uint length)
if (!(query =(char *) my_malloc((sizeof(char)*(length+110)), MYF(MY_WME))))
return 1;
- sprintf(query, "%s TABLE %s %s", op, tables, options);
+ sprintf(query, "%s TABLE `%s` %s", op, tables, options);
if (mysql_query(sock, query))
{
- sprintf(message, "when executing '%s TABLE ... %s", op, options);
+ sprintf(message, "when executing '%s TABLE `%s` %s", op, tables,options);
DBerror(sock, message);
return 1;
}