summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2006-10-30 12:03:42 +0300
committerunknown <kostja@bodhi.local>2006-10-30 12:03:42 +0300
commit26770e3a1b40c4646cf4c926fe1e76175a0d82cb (patch)
tree9249efa75bebb445e0d1f9389d4f07fd6af0c37b /sql/sql_parse.cc
parentf6e92be9b10c5c4e3af1aab25574d780ac461baf (diff)
downloadmariadb-git-26770e3a1b40c4646cf4c926fe1e76175a0d82cb.tar.gz
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)
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index d2cbd5b0008..2a46656e8d2 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3045,11 +3045,6 @@ end_with_restore_list:
case SQLCOM_ALTER_TABLE:
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;
if (lex->name && (!lex->name[0] || strlen(lex->name) > NAME_LEN))
@@ -3115,7 +3110,6 @@ end_with_restore_list:
}
break;
}
-#endif /*DONT_ALLOW_SHOW_COMMANDS*/
case SQLCOM_RENAME_TABLE:
{
DBUG_ASSERT(first_table == all_tables && first_table != 0);