mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
A cleanup.
sql/sql_parse.cc: ALTER TABLE should not be affected by DONT_ALLOW_SHOW_COMMANDS (a bug that's there since version 1.1)
This commit is contained in:
parent
f6e92be9b1
commit
26770e3a1b
1 changed files with 0 additions and 6 deletions
|
@ -3045,11 +3045,6 @@ end_with_restore_list:
|
||||||
|
|
||||||
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 @@ end_with_restore_list:
|
||||||
}
|
}
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue