summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2009-04-17 13:46:27 +0500
committerSergey Glukhov <Sergey.Glukhov@sun.com>2009-04-17 13:46:27 +0500
commitbf2e29d3744e572147adf3bae1f702eb14b42cf6 (patch)
tree73c578f3915524ff84b1c7ea535cfee31f320169 /sql/sql_handler.cc
parentbd251400dfff157639fc342d2141d51b59a42e79 (diff)
parentff923cc82d23f9806834a2411150e32d30b9f4d9 (diff)
downloadmariadb-git-bf2e29d3744e572147adf3bae1f702eb14b42cf6.tar.gz
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 9c8bba6208c..16810e29343 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -199,6 +199,14 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
tables->db, tables->table_name, tables->alias,
(int) reopen));
+ if (tables->schema_table)
+ {
+ my_error(ER_WRONG_USAGE, MYF(0), "HANDLER OPEN",
+ INFORMATION_SCHEMA_NAME.str);
+ DBUG_PRINT("exit",("ERROR"));
+ DBUG_RETURN(TRUE);
+ }
+
if (! hash_inited(&thd->handler_tables_hash))
{
/*