diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-05-16 17:07:50 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-05-16 20:18:18 +0200 |
commit | 4a8a6f605d3f9c8cbca14a04cb75c6d2a29fb6f6 (patch) | |
tree | d94bdcaba4a2afae612e48f116ef2017cfee77af /mysql-test/main/insert.test | |
parent | a2bcfa64fee99bd6892a198ebb20043a39523d40 (diff) | |
download | mariadb-git-4a8a6f605d3f9c8cbca14a04cb75c6d2a29fb6f6.tar.gz |
MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECT
same as MDEV-26412, but in CREATE...SELECT.
fix: apply 39feab3cd31b to create rule too.
Diffstat (limited to 'mysql-test/main/insert.test')
-rw-r--r-- | mysql-test/main/insert.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/main/insert.test b/mysql-test/main/insert.test index 27d44918bbb..b27290bc91c 100644 --- a/mysql-test/main/insert.test +++ b/mysql-test/main/insert.test @@ -638,4 +638,13 @@ create table t (a int); select 1 in (select count(*) from t t1 join (t t2 join t t3 on (t1.a != 0))); drop table t; +--echo # +--echo # MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECT +--echo # +create table t1 (i int) ; +create table t2 (j int) ; +--error ER_BAD_FIELD_ERROR +create table t4 select * from t1 join t2 on (select t3.i); +drop table t1, t2; + --echo # End of 10.4 tests |