summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-04-09 15:35:24 +0200
committerSergei Golubchik <sergii@pisem.net>2013-04-09 15:35:24 +0200
commit934115184b52a28a30d576a8a47d0ec66b1b0712 (patch)
treef033b3ade00af9e87bffd6fc2fdd4f40f7f11a5f /sql/table.h
parentb0a5dd73fa7d9f239661cc1683422f14e69c53eb (diff)
downloadmariadb-git-934115184b52a28a30d576a8a47d0ec66b1b0712.tar.gz
convenience helpers for get_table_share() and tdc_open_view().
Pass db and table_name into a function instead of the table_list, when only db and table name are needed.
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/table.h b/sql/table.h
index 1ac3dcba0ba..816567f1496 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -1624,7 +1624,7 @@ struct TABLE_LIST
/**
Prepare TABLE_LIST that consists of one table instance to use in
- simple_open_and_lock_tables
+ open_and_lock_tables
*/
inline void init_one_table(const char *db_name_arg,
size_t db_length_arg,
@@ -2464,8 +2464,8 @@ enum open_frm_error open_table_from_share(THD *thd, TABLE_SHARE *share,
bool unpack_vcol_info_from_frm(THD *thd, MEM_ROOT *mem_root,
TABLE *table, Field *field,
LEX_STRING *vcol_expr, bool *error_reported);
-TABLE_SHARE *alloc_table_share(TABLE_LIST *table_list, char *key,
- uint key_length);
+TABLE_SHARE *alloc_table_share(const char *db, const char *table_name,
+ char *key, uint key_length);
void init_tmp_table_share(THD *thd, TABLE_SHARE *share, const char *key,
uint key_length,
const char *table_name, const char *path);