summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-08-31 13:52:56 +0400
committerAlexander Nozdrin <alik@sun.com>2010-08-31 13:52:56 +0400
commit2e462c8f99c98bf525fc1105e9e6ca52a6b5c221 (patch)
treeacedde900b65153364dd01f2ea2473935b3b1213 /sql/sql_table.cc
parenta92ca267e0c3d73dbe43f339721312044e3eec47 (diff)
downloadmariadb-git-2e462c8f99c98bf525fc1105e9e6ca52a6b5c221.tar.gz
Bug#27480 (Extend CREATE TEMPORARY TABLES privilege
to allow temp table operations) -- prerequisite patch #2. Introduce a new form of find_temporary_table() function: find_temporary_table() by a table key. It will be used in further patches. Replace find_temporary_table(table_list->db, table_list->name) by more appropiate find_temporary_table(table_list) across the codebase.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 3f0a0326c84..06db813481d 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -2008,7 +2008,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
{
for (table= tables; table; table= table->next_local)
if (table->open_type != OT_BASE_ONLY &&
- find_temporary_table(thd, table->db, table->table_name))
+ find_temporary_table(thd, table))
{
/*
A temporary table.