mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.3 merge
This commit is contained in:
@ -465,6 +465,20 @@ t1.val=t3.val
|
||||
;
|
||||
ERROR 42S22: Unknown column 'v.val' in 'field list'
|
||||
drop table t1, t2;
|
||||
#
|
||||
# MDEV-5353: server crash on subselect if WHERE applied to some
|
||||
# result field
|
||||
#
|
||||
SELECT * FROM
|
||||
( SELECT 100 a, subsel.b FROM ( SELECT 200 b ) subsel ) tmp
|
||||
WHERE tmp.b;
|
||||
a b
|
||||
100 200
|
||||
SELECT * FROM
|
||||
( SELECT 100 a, subsel.b FROM ( SELECT 200 b ) subsel ) tmp
|
||||
WHERE tmp.a;
|
||||
a b
|
||||
100 200
|
||||
# End of 5.3 tests
|
||||
#
|
||||
# Bug#58730 Assertion failed: table->key_read == 0 in close_thread_table,
|
||||
|
@ -2394,6 +2394,13 @@ REPAIR TABLE m1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.m1 repair note The storage engine for the table doesn't support repair
|
||||
DROP TABLE m1, t1;
|
||||
create temporary table t1_temp(i int);
|
||||
create temporary table tm_temp_temp (i int) engine=merge union=(t1_temp) insert_method=last;
|
||||
alter table tm_temp_temp insert_method=first;
|
||||
check table tm_temp_temp;
|
||||
Table Op Msg_type Msg_text
|
||||
test.tm_temp_temp check status OK
|
||||
drop temporary table t1_temp, tm_temp_temp;
|
||||
End of 5.1 tests
|
||||
#
|
||||
# MDEV-4277: Crash inside mi_killed_in_mariadb() with myisammrg
|
||||
|
@ -3996,4 +3996,27 @@ Handler_read_rnd_deleted 0
|
||||
Handler_read_rnd_next 0
|
||||
deallocate prepare st;
|
||||
drop table t1;
|
||||
#
|
||||
# Bug mdev-5410: crash at the execution of PS with subselect
|
||||
# formed by UNION with global ORDER BY
|
||||
#
|
||||
CREATE TABLE t1 (a int DEFAULT NULL);
|
||||
INSERT INTO t1 VALUES (2), (4);
|
||||
CREATE TABLE t2 (b int DEFAULT NULL);
|
||||
INSERT INTO t2 VALUES (1), (3);
|
||||
PREPARE stmt FROM "
|
||||
SELECT c1 FROM (SELECT (SELECT a FROM t1 WHERE t1.a <= t2.b
|
||||
UNION ALL
|
||||
SELECT a FROM t1 WHERE t1.a+3<= t2.b
|
||||
ORDER BY a DESC) AS c1 FROM t2) t3;
|
||||
";
|
||||
EXECUTE stmt;
|
||||
c1
|
||||
NULL
|
||||
2
|
||||
EXECUTE stmt;
|
||||
c1
|
||||
NULL
|
||||
2
|
||||
DROP TABLE t1,t2;
|
||||
# End of 5.3 tests
|
||||
|
@ -1734,6 +1734,21 @@ i
|
||||
6
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# mdev-5382: UNION with ORDER BY in subselect
|
||||
#
|
||||
CREATE TABLE t1 (a int DEFAULT NULL);
|
||||
INSERT INTO t1 VALUES (2), (4);
|
||||
CREATE TABLE t2 (b int DEFAULT NULL);
|
||||
INSERT INTO t2 VALUES (1), (3);
|
||||
SELECT c1 FROM (SELECT (SELECT a FROM t1 WHERE t1.a <= t2.b
|
||||
UNION ALL
|
||||
SELECT a FROM t1 WHERE t1.a+3<= t2.b
|
||||
ORDER BY a DESC) AS c1 FROM t2) t3;
|
||||
c1
|
||||
NULL
|
||||
2
|
||||
DROP TABLE t1,t2;
|
||||
End of 5.3 tests
|
||||
#
|
||||
# Bug#57986 ORDER BY clause is not used after a UNION,
|
||||
|
@ -383,7 +383,17 @@ set
|
||||
|
||||
drop table t1, t2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-5353: server crash on subselect if WHERE applied to some
|
||||
--echo # result field
|
||||
--echo #
|
||||
|
||||
SELECT * FROM
|
||||
( SELECT 100 a, subsel.b FROM ( SELECT 200 b ) subsel ) tmp
|
||||
WHERE tmp.b;
|
||||
SELECT * FROM
|
||||
( SELECT 100 a, subsel.b FROM ( SELECT 200 b ) subsel ) tmp
|
||||
WHERE tmp.a;
|
||||
--echo # End of 5.3 tests
|
||||
|
||||
--echo #
|
||||
|
@ -1830,6 +1830,15 @@ REPAIR TABLE m1;
|
||||
#
|
||||
DROP TABLE m1, t1;
|
||||
|
||||
#
|
||||
# MDEV-5266 MySQL:57657 - Temporary MERGE table with temporary underlying is broken by ALTER
|
||||
#
|
||||
create temporary table t1_temp(i int);
|
||||
create temporary table tm_temp_temp (i int) engine=merge union=(t1_temp) insert_method=last;
|
||||
alter table tm_temp_temp insert_method=first;
|
||||
check table tm_temp_temp;
|
||||
drop temporary table t1_temp, tm_temp_temp;
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
--echo #
|
||||
|
@ -3572,4 +3572,26 @@ show status like '%Handler_read%';
|
||||
deallocate prepare st;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # Bug mdev-5410: crash at the execution of PS with subselect
|
||||
--echo # formed by UNION with global ORDER BY
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (a int DEFAULT NULL);
|
||||
INSERT INTO t1 VALUES (2), (4);
|
||||
CREATE TABLE t2 (b int DEFAULT NULL);
|
||||
INSERT INTO t2 VALUES (1), (3);
|
||||
|
||||
PREPARE stmt FROM "
|
||||
SELECT c1 FROM (SELECT (SELECT a FROM t1 WHERE t1.a <= t2.b
|
||||
UNION ALL
|
||||
SELECT a FROM t1 WHERE t1.a+3<= t2.b
|
||||
ORDER BY a DESC) AS c1 FROM t2) t3;
|
||||
";
|
||||
|
||||
EXECUTE stmt;
|
||||
EXECUTE stmt;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
--echo # End of 5.3 tests
|
||||
|
@ -1188,6 +1188,22 @@ deallocate prepare stmt1;
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # mdev-5382: UNION with ORDER BY in subselect
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (a int DEFAULT NULL);
|
||||
INSERT INTO t1 VALUES (2), (4);
|
||||
CREATE TABLE t2 (b int DEFAULT NULL);
|
||||
INSERT INTO t2 VALUES (1), (3);
|
||||
|
||||
SELECT c1 FROM (SELECT (SELECT a FROM t1 WHERE t1.a <= t2.b
|
||||
UNION ALL
|
||||
SELECT a FROM t1 WHERE t1.a+3<= t2.b
|
||||
ORDER BY a DESC) AS c1 FROM t2) t3;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
--echo End of 5.3 tests
|
||||
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user