summaryrefslogtreecommitdiff
path: root/mysql-test/main/derived_cond_pushdown.test
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2021-01-12 11:38:26 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2021-01-12 11:38:26 +0530
commit1be707286ef13041a67e6e6ca30125470245a898 (patch)
treeee03fe74b7c32f40814e0cb13f801f0a0af98c62 /mysql-test/main/derived_cond_pushdown.test
parent5a1a7141870459cf66d8e441b443187f87a10d5d (diff)
downloadmariadb-git-1be707286ef13041a67e6e6ca30125470245a898.tar.gz
Added the test case for MDEV-23804
Diffstat (limited to 'mysql-test/main/derived_cond_pushdown.test')
-rw-r--r--mysql-test/main/derived_cond_pushdown.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/main/derived_cond_pushdown.test b/mysql-test/main/derived_cond_pushdown.test
index 1b980fd3685..12d34a8326a 100644
--- a/mysql-test/main/derived_cond_pushdown.test
+++ b/mysql-test/main/derived_cond_pushdown.test
@@ -3466,4 +3466,17 @@ eval set statement optimizer_switch='split_materialized=on' for $q;
DROP TABLE t;
+--echo #
+--echo # MDEV-23804: Server crashes in st_select_lex::collect_grouping_fields_for_derived
+--echo #
+
+CREATE TABLE t1 (a INT);
+INSERT INTO t1 VALUES (3),(4);
+CREATE VIEW v1 AS SELECT a FROM t1 UNION VALUES (3),(4);
+--source include/analyze-format.inc
+ANALYZE FORMAT=JSON SELECT * from v1 WHERE a=3;
+SELECT * from v1 WHERE a=3;
+DROP VIEW v1;
+DROP TABLE t1;
+
--echo # End of 10.3 tests