mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
test case for Bug #23303485 : HANDLE_FATAL_SIGNAL (SIG=11) IN SUBSELECT_UNION_ENGINE::NO_ROWS
This commit is contained in:
parent
9fefe97336
commit
48655ce698
2 changed files with 23 additions and 0 deletions
|
@ -384,3 +384,13 @@ DEALLOCATE PREPARE stmt;
|
|||
DROP VIEW v1;
|
||||
DROP TABLE t1,t2,t3;
|
||||
set optimizer_switch=@subselect2_test_tmp;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int);
|
||||
create table t3(a int);
|
||||
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
insert into t2 select a from t1;
|
||||
insert into t3 select a from t1;
|
||||
select null in (select a from t1 where a < out3.a union select a from t2 where
|
||||
(select a from t3) +1 < out3.a+1) from t3 out3;
|
||||
ERROR 21000: Subquery returns more than 1 row
|
||||
drop table t1, t2, t3;
|
||||
|
|
|
@ -398,3 +398,16 @@ DROP TABLE t1,t2,t3;
|
|||
|
||||
set optimizer_switch=@subselect2_test_tmp;
|
||||
|
||||
#
|
||||
# Bug #23303485 : HANDLE_FATAL_SIGNAL (SIG=11) IN SUBSELECT_UNION_ENGINE::NO_ROWS
|
||||
#
|
||||
create table t1 (a int);
|
||||
create table t2 (a int);
|
||||
create table t3(a int);
|
||||
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
insert into t2 select a from t1;
|
||||
insert into t3 select a from t1;
|
||||
--error ER_SUBQUERY_NO_1_ROW
|
||||
select null in (select a from t1 where a < out3.a union select a from t2 where
|
||||
(select a from t3) +1 < out3.a+1) from t3 out3;
|
||||
drop table t1, t2, t3;
|
||||
|
|
Loading…
Reference in a new issue