mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5284 Assertion `!(*expr)->fixed' fails in replace_where_subcondition with IN suquery
This commit is contained in:
@ -11,3 +11,10 @@ REVERSE(EXISTS(SELECT RAND() FROM t1))
|
||||
0
|
||||
SET GLOBAL debug=@orig_debug;
|
||||
DROP TABLE t1;
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1),(2);
|
||||
select * from t1 where (i < 200 or i = 300) and i in (select i from t1);
|
||||
i
|
||||
1
|
||||
2
|
||||
drop table t1;
|
||||
|
@ -15,3 +15,13 @@ SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
|
||||
SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
|
||||
SET GLOBAL debug=@orig_debug;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# MDEV-5284 Assertion `!(*expr)->fixed' fails in replace_where_subcondition with IN suquery
|
||||
#
|
||||
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1),(2);
|
||||
select * from t1 where (i < 200 or i = 300) and i in (select i from t1);
|
||||
drop table t1;
|
||||
|
||||
|
Reference in New Issue
Block a user