Commit 4cf3cb72 authored by Igor Babaev's avatar Igor Babaev

Backported the test case for bug 58837. The fix was backported earlier.

parent 7bc6a83b
......@@ -492,6 +492,37 @@ DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
--echo #
--echo # Bug#58837: ICP crash or valgrind error due to uninitialized
--echo # value in innobase_index_cond
--echo #
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
--disable_warnings
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
--enable_warnings
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
DROP TABLE t1,t2;
--echo #
--echo # BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
--echo #
......
......@@ -462,6 +462,29 @@ pk c1
DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
#
# Bug#58837: ICP crash or valgrind error due to uninitialized
# value in innobase_index_cond
#
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
t1_int t1_time
DROP TABLE t1,t2;
#
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
#
CREATE TABLE t1 ( f11 int) ;
......
......@@ -468,6 +468,29 @@ pk c1
DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
#
# Bug#58837: ICP crash or valgrind error due to uninitialized
# value in innobase_index_cond
#
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
t1_int t1_time
DROP TABLE t1,t2;
#
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
#
CREATE TABLE t1 ( f11 int) ;
......
......@@ -466,6 +466,29 @@ pk c1
DROP TABLE t1;
set optimizer_switch= @save_optimizer_switch;
#
# Bug#58837: ICP crash or valgrind error due to uninitialized
# value in innobase_index_cond
#
CREATE TABLE t1 (
t1_int INT,
t1_time TIME
);
CREATE TABLE t2 (
t2_int int PRIMARY KEY,
t2_int2 INT
);
INSERT INTO t2 VALUES ();
INSERT INTO t1 VALUES ();
SELECT * FROM t1 AS t1a
WHERE NOT EXISTS (SELECT * FROM t1 AS t1b
WHERE t1b.t1_int NOT IN
(SELECT t2.t2_int FROM t2
WHERE t1b.t1_time LIKE t1b.t1_int
OR t1b.t1_time <> t2.t2_int2
AND 6=7));
t1_int t1_time
DROP TABLE t1,t2;
#
# BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
#
CREATE TABLE t1 ( f11 int) ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment