summaryrefslogtreecommitdiff
path: root/sql/sql_cte.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-09-06 10:05:36 -0700
committerIgor Babaev <igor@askmonty.org>2016-09-06 10:05:36 -0700
commit2d36e5aa38b6943d194e1696761cf357e7d09cca (patch)
tree2832787d1bb26a057be47bb89aed9589844cb66b /sql/sql_cte.cc
parent225440047d145bbe6a92bff05c5d4aa33e0aca91 (diff)
downloadmariadb-git-2d36e5aa38b6943d194e1696761cf357e7d09cca.tar.gz
Fixed bug mdev-10736 that caused crashes.
The bug manifested itself for recursive definitions that used anchors over tables with blobs.
Diffstat (limited to 'sql/sql_cte.cc')
-rw-r--r--sql/sql_cte.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_cte.cc b/sql/sql_cte.cc
index fa18de0f49f..f6447b29827 100644
--- a/sql/sql_cte.cc
+++ b/sql/sql_cte.cc
@@ -1301,6 +1301,9 @@ bool With_element::instantiate_tmp_tables()
&rec_result->tmp_table_param.recinfo,
0))
return true;
+
+ rec_table->file->extra(HA_EXTRA_WRITE_CACHE);
+ rec_table->file->extra(HA_EXTRA_IGNORE_DUP_KEY);
}
return false;
}