summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2017-01-29 18:52:32 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2017-03-12 09:02:14 +0100
commita4652c3b1a2a366065dbac3a7570e3cac09870ad (patch)
treedca7046c756c4e39bc7bc95a86cb95d23b1589bd
parentf7740b6604ae324be20feab192008f015c139498 (diff)
downloadmariadb-git-a4652c3b1a2a366065dbac3a7570e3cac09870ad.tar.gz
Comment added.
-rw-r--r--sql/sql_select.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index cad25f035f9..2fcbd3768f4 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -18008,6 +18008,10 @@ bool instantiate_tmp_table(TABLE *table, KEY *keyinfo,
{
if (table->s->db_type() == TMP_ENGINE_HTON)
{
+ /*
+ If it is not heap (in-memory) table then convert index to unique
+ constrain.
+ */
if (create_internal_tmp_table(table, keyinfo, start_recinfo, recinfo,
options))
return TRUE;