diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-04-17 13:46:27 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-04-17 13:46:27 +0500 |
commit | bf2e29d3744e572147adf3bae1f702eb14b42cf6 (patch) | |
tree | 73c578f3915524ff84b1c7ea535cfee31f320169 /sql/sql_handler.cc | |
parent | bd251400dfff157639fc342d2141d51b59a42e79 (diff) | |
parent | ff923cc82d23f9806834a2411150e32d30b9f4d9 (diff) | |
download | mariadb-git-bf2e29d3744e572147adf3bae1f702eb14b42cf6.tar.gz |
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r-- | sql/sql_handler.cc | 8 |
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)) { /* |