summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 60371813280..54bf3bf29f2 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -2040,11 +2040,13 @@ retry_share:
if (!(table=(TABLE*) my_malloc(sizeof(*table),MYF(MY_WME))))
goto err_lock;
+ table_list->intention_table= table;
error= open_table_from_share(thd, share, &table_list->alias,
HA_OPEN_KEYFILE | HA_TRY_READ_ONLY,
EXTRA_RECORD,
thd->open_options, table, FALSE,
- IF_PARTITIONING(table_list->partition_names,0));
+ IF_PARTITIONING(table_list->partition_names,0),
+ table_list);
if (unlikely(error))
{