mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user