diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2010-10-12 22:48:49 +0300 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2010-10-12 22:48:49 +0300 |
commit | 7b95a6f74547162aabf81971566a9ac970d6f03a (patch) | |
tree | ad938fd92fa599830c6524e4b3a2ab2e6e765535 /mysql-test/r | |
parent | 51294f59488789dcde8b4d8f0c2027e5e8b2c1a5 (diff) | |
download | mariadb-git-7b95a6f74547162aabf81971566a9ac970d6f03a.tar.gz |
Post-merge test result fixes part#1 (checked)
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/subselect4.result | 53 | ||||
-rw-r--r-- | mysql-test/r/subselect_no_mat.result | 17 | ||||
-rw-r--r-- | mysql-test/r/subselect_no_opts.result | 17 | ||||
-rw-r--r-- | mysql-test/r/subselect_no_semijoin.result | 17 |
4 files changed, 74 insertions, 30 deletions
diff --git a/mysql-test/r/subselect4.result b/mysql-test/r/subselect4.result index 176920a8fa8..ed1699c1409 100644 --- a/mysql-test/r/subselect4.result +++ b/mysql-test/r/subselect4.result @@ -59,7 +59,29 @@ FROM t3 WHERE 1 = 0 GROUP BY 1; (SELECT 1 FROM t1,t2 WHERE t2.b > t3.b) DROP TABLE t1,t2,t3; End of 5.0 tests. -<<<<<<< TREE +CREATE TABLE t1 (col_int_nokey int(11) NOT NULL, col_varchar_nokey varchar(1) NOT NULL) engine=myisam; +INSERT INTO t1 VALUES (2,'s'),(0,'v'),(2,'s'); +CREATE TABLE t2 ( +pk int(11) NOT NULL AUTO_INCREMENT, +`col_int_key` int(11) NOT NULL, +col_varchar_key varchar(1) NOT NULL, +PRIMARY KEY (pk), +KEY `col_int_key` (`col_int_key`), +KEY `col_varchar_key` (`col_varchar_key`) +) ENGINE=MyISAM; +INSERT INTO t2 VALUES (4,10,'g'), (5,20,'v'); +SELECT t1.col_int_nokey,(SELECT MIN( t2_a.col_int_key ) FROM t2 t2_a, t2 t2_b, t1 t1_a WHERE t1_a.col_varchar_nokey = t2_b.col_varchar_key and t1.col_int_nokey ) as sub FROM t1; +col_int_nokey sub +2 10 +0 NULL +2 10 +SELECT t1.col_int_nokey,(SELECT MIN( t2_a.col_int_key ) +1 FROM t2 t2_a, t2 t2_b, t1 t1_a WHERE t1_a.col_varchar_nokey = t2_b.col_varchar_key and t1.col_int_nokey ) as sub FROM t1; +col_int_nokey sub +2 11 +0 NULL +2 11 +DROP TABLE t1,t2; +End of 5.1 tests. # # BUG#46743 "Azalea processing correlated, aggregate SELECT # subqueries incorrectly" @@ -330,12 +352,7 @@ i3 INT, KEY i1_index (i1_key) ); INSERT INTO t1 VALUES (9,1,2), (9,2,1); -======= -CREATE TABLE t1 (col_int_nokey int(11) NOT NULL, col_varchar_nokey varchar(1) NOT NULL) engine=myisam; -INSERT INTO t1 VALUES (2,'s'),(0,'v'),(2,'s'); ->>>>>>> MERGE-SOURCE CREATE TABLE t2 ( -<<<<<<< TREE pk INT NOT NULL, i1 INT, PRIMARY KEY (pk) @@ -359,28 +376,4 @@ pk 9 # Restore old value for Index condition pushdown SET SESSION engine_condition_pushdown=@old_icp; -======= -pk int(11) NOT NULL AUTO_INCREMENT, -`col_int_key` int(11) NOT NULL, -col_varchar_key varchar(1) NOT NULL, -PRIMARY KEY (pk), -KEY `col_int_key` (`col_int_key`), -KEY `col_varchar_key` (`col_varchar_key`) -) ENGINE=MyISAM; -INSERT INTO t2 VALUES (4,10,'g'), (5,20,'v'); -SELECT t1.col_int_nokey,(SELECT MIN( t2_a.col_int_key ) FROM t2 t2_a, t2 t2_b, t1 t1_a WHERE t1_a.col_varchar_nokey = t2_b.col_varchar_key and t1.col_int_nokey ) as sub FROM t1; -col_int_nokey sub -2 10 -0 NULL -2 10 -SELECT t1.col_int_nokey,(SELECT MIN( t2_a.col_int_key ) +1 FROM t2 t2_a, t2 t2_b, t1 t1_a WHERE t1_a.col_varchar_nokey = t2_b.col_varchar_key and t1.col_int_nokey ) as sub FROM t1; -col_int_nokey sub -2 11 -0 NULL -2 11 ->>>>>>> MERGE-SOURCE DROP TABLE t1,t2; -<<<<<<< TREE -======= -End of 5.1 tests. ->>>>>>> MERGE-SOURCE diff --git a/mysql-test/r/subselect_no_mat.result b/mysql-test/r/subselect_no_mat.result index 4a66013cbf8..82870595b54 100644 --- a/mysql-test/r/subselect_no_mat.result +++ b/mysql-test/r/subselect_no_mat.result @@ -4924,6 +4924,23 @@ t1_id total_amount DROP TABLE t3; DROP TABLE t2; DROP TABLE t1; +# +# Bug #52711: Segfault when doing EXPLAIN SELECT with +# union...order by (select... where...) +# +CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a)); +INSERT INTO t1 VALUES (1),(2); +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (1),(2); +# Should not crash +EXPLAIN +SELECT * FROM t2 UNION SELECT * FROM t2 +ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE)); +# Should not crash +SELECT * FROM t2 UNION SELECT * FROM t2 +ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE)); +DROP TABLE t1,t2; +End of 5.1 tests set optimizer_switch=default; select @@optimizer_switch like '%materialization=on%'; @@optimizer_switch like '%materialization=on%' diff --git a/mysql-test/r/subselect_no_opts.result b/mysql-test/r/subselect_no_opts.result index 32e4682add5..db83cc0eaa9 100644 --- a/mysql-test/r/subselect_no_opts.result +++ b/mysql-test/r/subselect_no_opts.result @@ -4921,4 +4921,21 @@ t1_id total_amount DROP TABLE t3; DROP TABLE t2; DROP TABLE t1; +# +# Bug #52711: Segfault when doing EXPLAIN SELECT with +# union...order by (select... where...) +# +CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a)); +INSERT INTO t1 VALUES (1),(2); +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (1),(2); +# Should not crash +EXPLAIN +SELECT * FROM t2 UNION SELECT * FROM t2 +ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE)); +# Should not crash +SELECT * FROM t2 UNION SELECT * FROM t2 +ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE)); +DROP TABLE t1,t2; +End of 5.1 tests set optimizer_switch=default; diff --git a/mysql-test/r/subselect_no_semijoin.result b/mysql-test/r/subselect_no_semijoin.result index 1c38b7b7c93..b2547be3d27 100644 --- a/mysql-test/r/subselect_no_semijoin.result +++ b/mysql-test/r/subselect_no_semijoin.result @@ -4921,4 +4921,21 @@ t1_id total_amount DROP TABLE t3; DROP TABLE t2; DROP TABLE t1; +# +# Bug #52711: Segfault when doing EXPLAIN SELECT with +# union...order by (select... where...) +# +CREATE TABLE t1 (a VARCHAR(10), FULLTEXT KEY a (a)); +INSERT INTO t1 VALUES (1),(2); +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (1),(2); +# Should not crash +EXPLAIN +SELECT * FROM t2 UNION SELECT * FROM t2 +ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE)); +# Should not crash +SELECT * FROM t2 UNION SELECT * FROM t2 +ORDER BY (SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abc' IN BOOLEAN MODE)); +DROP TABLE t1,t2; +End of 5.1 tests set optimizer_switch=default; |