diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-08-31 13:52:56 +0400 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-08-31 13:52:56 +0400 |
commit | 65c5e8dcbf829c1e554b44363c4d264202514513 (patch) | |
tree | acedde900b65153364dd01f2ea2473935b3b1213 /sql/sql_base.h | |
parent | 13a2e39f2bbcfc5c28a95d608e3f10f3dfaf7acb (diff) | |
download | mariadb-git-65c5e8dcbf829c1e554b44363c4d264202514513.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_base.h')
-rw-r--r-- | sql/sql_base.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h index ff935c3fc09..1a1f2d957f3 100644 --- a/sql/sql_base.h +++ b/sql/sql_base.h @@ -79,7 +79,8 @@ void table_def_start_shutdown(void); void assign_new_table_id(TABLE_SHARE *share); uint cached_open_tables(void); uint cached_table_definitions(void); -uint create_table_def_key(THD *thd, char *key, TABLE_LIST *table_list, +uint create_table_def_key(THD *thd, char *key, + const TABLE_LIST *table_list, bool tmp_table); TABLE_SHARE *get_table_share(THD *thd, TABLE_LIST *table_list, char *key, uint key_length, uint db_flags, int *error, @@ -159,7 +160,9 @@ TABLE_LIST *find_table_in_list(TABLE_LIST *table, const char *db_name, const char *table_name); TABLE *find_temporary_table(THD *thd, const char *db, const char *table_name); -TABLE *find_temporary_table(THD *thd, TABLE_LIST *table_list); +TABLE *find_temporary_table(THD *thd, const TABLE_LIST *tl); +TABLE *find_temporary_table(THD *thd, const char *table_key, + uint table_key_length); void close_thread_tables(THD *thd); bool fill_record_n_invoke_before_triggers(THD *thd, List<Item> &fields, List<Item> &values, |