diff options
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 14f02b903b7..f6cf57276a7 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -197,6 +197,7 @@ Foreign_key::Foreign_key(const Foreign_key &rhs, MEM_ROOT *mem_root) ref_table(rhs.ref_table), ref_table_list(rhs.ref_table_list), ref_columns(rhs.ref_columns,mem_root), + ref_period(rhs.ref_period), fk_options(rhs.fk_options) { list_copy_and_replace_each_value(ref_columns, mem_root); @@ -4979,6 +4980,11 @@ unsigned long long thd_get_query_id(const MYSQL_THD thd) return((unsigned long long)thd->query_id); } +TABLE *thd_get_open_tables(const MYSQL_THD thd) +{ + return thd->open_tables; +} + void thd_clear_error(MYSQL_THD thd) { thd->clear_error(); |