summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-02-13 18:28:36 -0500
committerNirbhay Choubey <nirbhay@mariadb.com>2016-02-13 18:28:36 -0500
commitd23bd26bec787ebbdbd41be0204e9cb83baf4dbd (patch)
treedda05b0ebb3858e913b0ca3b864705e989bb7661 /sql/sql_insert.cc
parentb83de1151aab6dcc9f300159e31198364000de70 (diff)
parenta9a08b1e2f5b7a9e3ab7c7f75c768389b1d8238f (diff)
downloadmariadb-git-d23bd26bec787ebbdbd41be0204e9cb83baf4dbd.tar.gz
Merge tag 'mariadb-5.5.48' into 5.5-galera
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 75a62a0f120..8e8745f322f 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -4197,6 +4197,8 @@ select_create::prepare(List<Item> &values, SELECT_LEX_UNIT *u)
DBUG_RETURN(1);
table->mark_columns_needed_for_insert();
table->file->extra(HA_EXTRA_WRITE_CACHE);
+ // Mark table as used
+ table->query_id= thd->query_id;
DBUG_RETURN(0);
}