1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Allow MySQL check to handle tables with spaces inside

This commit is contained in:
peter@linux.local
2002-06-17 22:07:29 +04:00
parent b44b485491
commit 1e930341fd

View File

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