Commit dfc4dd42 authored by kostja@bodhi.local's avatar kostja@bodhi.local

A cleanup.

parent 8143148b
...@@ -3045,11 +3045,6 @@ mysql_execute_command(THD *thd) ...@@ -3045,11 +3045,6 @@ mysql_execute_command(THD *thd)
case SQLCOM_ALTER_TABLE: case SQLCOM_ALTER_TABLE:
DBUG_ASSERT(first_table == all_tables && first_table != 0); DBUG_ASSERT(first_table == all_tables && first_table != 0);
#if defined(DONT_ALLOW_SHOW_COMMANDS)
my_message(ER_NOT_ALLOWED_COMMAND, ER(ER_NOT_ALLOWED_COMMAND),
MYF(0)); /* purecov: inspected */
goto error;
#else
{ {
ulong priv=0; ulong priv=0;
if (lex->name && (!lex->name[0] || strlen(lex->name) > NAME_LEN)) if (lex->name && (!lex->name[0] || strlen(lex->name) > NAME_LEN))
...@@ -3115,7 +3110,6 @@ mysql_execute_command(THD *thd) ...@@ -3115,7 +3110,6 @@ mysql_execute_command(THD *thd)
} }
break; break;
} }
#endif /*DONT_ALLOW_SHOW_COMMANDS*/
case SQLCOM_RENAME_TABLE: case SQLCOM_RENAME_TABLE:
{ {
DBUG_ASSERT(first_table == all_tables && first_table != 0); DBUG_ASSERT(first_table == all_tables && first_table != 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