Commit 751b3be1 authored by unknown's avatar unknown

small fix


sql/sql_parse.cc:
  fix for a RANME to empty string
parent 3c899918
...@@ -1629,7 +1629,7 @@ mysql_execute_command(void) ...@@ -1629,7 +1629,7 @@ mysql_execute_command(void)
#else #else
{ {
ulong priv=0; ulong priv=0;
if (lex->name && strlen(lex->name) > NAME_LEN) if (lex->name && (!lex->name[0] || strlen(lex->name) > NAME_LEN))
{ {
net_printf(&thd->net,ER_WRONG_TABLE_NAME,lex->name); net_printf(&thd->net,ER_WRONG_TABLE_NAME,lex->name);
res=0; res=0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment