mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-6046: MySQL Bug#11766684 59851: UNINITIALISED VALUE IN ITEM_FUNC_LIKE::SELECT_OPTIMIZE WITH SUBQUERY AND
This commit is contained in:
parent
67bf16a48b
commit
113333d447
3 changed files with 35 additions and 13 deletions
|
|
@ -2658,6 +2658,17 @@ group_concat( i ) field
|
|||
NULL NULL
|
||||
8
|
||||
drop table t1;
|
||||
#
|
||||
# Bug#11766684 59851: UNINITIALISED VALUE IN ITEM_FUNC_LIKE::SELECT_OPTIMIZE WITH SUBQUERY AND
|
||||
#
|
||||
CREATE TABLE t2(a INT, KEY(a));
|
||||
INSERT INTO t2 VALUES (1),(2);
|
||||
CREATE TABLE t1(b INT, PRIMARY KEY(b));
|
||||
INSERT INTO t1 VALUES (0),(254);
|
||||
SELECT 1 FROM t2 WHERE a LIKE
|
||||
(SELECT EXPORT_SET(1, b, b, b, b) FROM t1 LIMIT 1);
|
||||
1
|
||||
DROP TABLE t1, t2;
|
||||
End of 5.1 tests
|
||||
#
|
||||
# Start of 5.3 tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue