summaryrefslogtreecommitdiff
path: root/mysql-test/r/parser.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/parser.result')
-rw-r--r--mysql-test/r/parser.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/parser.result b/mysql-test/r/parser.result
index e8bf9d12a33..870bbfbf904 100644
--- a/mysql-test/r/parser.result
+++ b/mysql-test/r/parser.result
@@ -1409,5 +1409,13 @@ Database Collation latin1_swedish_ci
drop function a;
set timestamp=default;
#
+# MDEV-28606 Server crashes in st_select_lex::add_table_to_list instead of error 1066: Not unique table/alias
+#
+create table t1 (i int) ;
+insert into t1 values (1),(2),(3) ;
+with cte1 as (select i from t1) select i from cte1 natural join cte1;
+ERROR 42000: Not unique table/alias: 'cte1'
+drop table t1;
+#
# End of 10.2 tests
#