summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_group_innodb.test
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-03-18 15:07:52 +0200
committerunknown <sanja@askmonty.org>2013-03-18 15:07:52 +0200
commit2cd7cf8fe6fa41fca124c9239468fc22f8df9957 (patch)
tree783ad42c38b697e566e0d79d2425e0c5a5c93085 /mysql-test/t/func_group_innodb.test
parent589247ae86b25eaa9bd75e4f26ecd06831469311 (diff)
downloadmariadb-git-2cd7cf8fe6fa41fca124c9239468fc22f8df9957.tar.gz
MDEV-4269 fix.
Item_default_value inherited form Item_field so should create temporary table field similary.
Diffstat (limited to 'mysql-test/t/func_group_innodb.test')
-rw-r--r--mysql-test/t/func_group_innodb.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/func_group_innodb.test b/mysql-test/t/func_group_innodb.test
index 58f365bb244..accd1f6a6b5 100644
--- a/mysql-test/t/func_group_innodb.test
+++ b/mysql-test/t/func_group_innodb.test
@@ -127,3 +127,17 @@ SELECT member_id_to, COUNT(*) FROM t1 WHERE r_date =
DROP TABLE t1;
--echo # End of test BUG#12713907
+
+--echo #
+--echo # MDEV-4269: crash when grouping by values()
+--echo #
+
+SELECT @@storage_engine INTO @old_engine;
+set storage_engine=innodb;
+
+create table y select 1 b;
+select 1 from y group by b;
+select 1 from y group by values(b);
+drop table y;
+SET storage_engine=@old_engine;
+