1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Backported the fix and the test case for bug 59483 from the mysql-5.6 code line.

This commit is contained in:
Igor Babaev
2011-10-30 06:17:07 -07:00
parent e5627c9802
commit 7dd42686fe
5 changed files with 91 additions and 3 deletions

View File

@ -574,6 +574,29 @@ SELECT pk FROM t1 WHERE c1 <> 1 HAVING pk = 3 ORDER BY pk LIMIT 5;
DROP TABLE t1;
--echo #
--echo # Bug#59483 "Crash on INSERT/REPLACE in
--echo # rec_convert_dtuple_to_rec_comp with ICP on"
--echo #
CREATE TABLE t1 (
pk INTEGER AUTO_INCREMENT PRIMARY KEY,
i1 INTEGER,
c1 CHAR(6),
i2 INTEGER NOT NULL,
KEY (i2)
);
INSERT INTO t1 VALUES
(NULL, 4, 'that', 8),
(NULL, 1, 'she', 6),
(NULL, 6, 'tell', 2);
SELECT * FROM t1 WHERE i2 IN (3, 6) LIMIT 2 FOR UPDATE;
INSERT INTO t1 (i2) VALUES (1);
DROP TABLE t1;
--echo #
--echo # BUG#778434 Wrong result with in_to_exists=on in maria-5.3-mwl89
--echo #