From 992cccd78e053a28af4130c1e9ee9a20327bac11 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Jun 2002 22:07:29 +0400 Subject: [PATCH] Allow MySQL check to handle tables with spaces inside client/mysqlcheck.c: Small fix to make MySQLCheck to handle table names with spaces inside. --- client/mysqlcheck.c | 4 ++-- 1 file 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; }