Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.4(EOL)
-
None
Description
The following test case fails if the server is built with -DWITH_PROTECT_STATEMENT_MEMROOT:BOOL=ON
CREATE TABLE t1 (a varchar(10)) ENGINE=MYISAM; |
CREATE TABLE t2 (b varchar(10) CHARACTER SET utf8) ENGINE=MYISAM; |
INSERT INTO t1 VALUES ('b'); |
INSERT INTO t2 VALUES ('b'); |
PREPARE stmt FROM |
"SELECT STRAIGHT_JOIN t1.a FROM t1 WHERE t1.a IN (SELECT t2.b FROM t2)"; |
EXECUTE stmt; |
EXECUTE stmt; |
DEALLOCATE PREPARE stmt; |
DROP TABLE t1,t2; |
An assertion failure happens when trying to allocate an Item_direct_ref_to_item at the second execution of the PS.
Attachments
Issue Links
- blocks
-
MDEV-30073 Wrong result on 2nd execution of PS for query with NOT EXISTS
-
- In Progress
-
- relates to
-
MDEV-32369 Memory leak when executing PS for query with IN subquery
-
- Closed
-
Activity
Transition | Time In Source Status | Execution Times |
---|
|
6d 17h 20m | 1 |
|
4m 15s | 1 |
|
10h 33m | 1 |
|
2m 46s | 1 |