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

small fix

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-11-12 17:41:31 +02:00
parent c92bbccbc1
commit abec0225fc

View File

@@ -1629,7 +1629,7 @@ mysql_execute_command(void)
#else
{
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);
res=0;