mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-13723: Server crashes in ha_heap::find_unique_row or Assertion `0' failed in st_select_lex_unit::optimize with INTERSECT
With INTERSECT/EXCEPT fact that subquery item of IN/ALL/ANY was not assigned value does not mean that temporary table used for calculating unit is empty (records could be deleted).
This commit is contained in:
@@ -81,3 +81,17 @@ create table t3 (select a,b,b1 from t1) except (select c,d,d1 from t2);
|
||||
show create table t3;
|
||||
|
||||
drop tables t1,t2,t3;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-13723: Server crashes in ha_heap::find_unique_row or
|
||||
--echo # Assertion `0' failed in st_select_lex_unit::optimize with INTERSECT
|
||||
--echo #
|
||||
CREATE TABLE t (i INT);
|
||||
INSERT INTO t VALUES (1),(2);
|
||||
|
||||
SELECT * FROM t WHERE i != ANY ( SELECT 3 EXCEPT SELECT 3 );
|
||||
|
||||
drop table t;
|
||||
|
||||
|
||||
--echo # End of 10.3 tests
|
||||
|
||||
Reference in New Issue
Block a user