1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +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:
Oleksandr Byelkin
2017-11-13 09:41:29 +01:00
parent 386e5d476e
commit d2bf101cbf
5 changed files with 31 additions and 5 deletions

View File

@@ -525,3 +525,13 @@ t3 CREATE TABLE `t3` (
`b1` blob DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop tables t1,t2,t3;
#
# MDEV-13723: Server crashes in ha_heap::find_unique_row or
# Assertion `0' failed in st_select_lex_unit::optimize with INTERSECT
#
CREATE TABLE t (i INT);
INSERT INTO t VALUES (1),(2);
SELECT * FROM t WHERE i != ANY ( SELECT 3 EXCEPT SELECT 3 );
i
drop table t;
# End of 10.3 tests