summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-03-09 22:23:19 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2020-03-09 22:23:19 +0100
commit2d6b38eacafba6f817df5a8c5ac435adbaa8e0d4 (patch)
tree796dd978155ec6f287838b713a1c6dd3bd2b15ad
parent1715f0ae100b7dee967a8f579a4850db345de78a (diff)
downloadmariadb-git-bb-10.5-MDEV-20632-3.tar.gz
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 783bfbd6e7a..d689f4e51ed 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -18313,7 +18313,7 @@ bool Create_tmp_table::add_fields(THD *thd,
DBUG_ASSERT(table->s->blob_fields == 0);
const bool not_all_columns= !(m_select_options & TMP_TABLE_ALL_COLUMNS);
- bool distinct_record_structure= distinct;
+ bool distinct_record_structure= m_distinct;
uint fieldnr= 0;
TABLE_SHARE *share= table->s;
Item **copy_func= param->items_to_copy;