#At file:///home/kgeorge/mysql/work/B35396-merge-6.0-bugteam/ based on
revid:alfranio.correia@stripped
2985 Georgi Kodinov 2009-01-29 [merge]
fixed a non-updated test result of bug #37822 causing failures in test suite.
modified:
mysql-test/lib/mtr_report.pl
mysql-test/r/subselect_no_opts.result
=== modified file 'mysql-test/lib/mtr_report.pl'
--- a/mysql-test/lib/mtr_report.pl 2009-01-06 16:52:32 +0000
+++ b/mysql-test/lib/mtr_report.pl 2009-01-29 13:55:56 +0000
@@ -497,6 +497,11 @@ sub mtr_report_stats ($) {
# this test is expected to print warnings
($testname eq 'main.innodb_bug39438') or
+ # Bug#39886, logs 'Table full' error message
+ (($testname eq 'main.almost_full' or
+ $testname eq 'main.myisam_data_pointer_size_func') and
+ (/The table '.*' is full/
+ )) or
# maria-recovery.test has warning about missing log file
/File '.*maria_log.000.*' not found \(Errcode: 2\)/ or
# and about marked-corrupted table
=== modified file 'mysql-test/r/subselect_no_opts.result'
--- a/mysql-test/r/subselect_no_opts.result 2008-12-29 16:40:21 +0000
+++ b/mysql-test/r/subselect_no_opts.result 2009-01-29 13:55:56 +0000
@@ -4663,7 +4663,6 @@ SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.
a incorrect
1 1
DROP TABLE t1,t2,t3;
-End of 5.1 tests.
CREATE TABLE t1( a INT );
INSERT INTO t1 VALUES (1),(2);
CREATE TABLE t2( a INT, b INT );
@@ -4925,6 +4924,43 @@ ERROR 42000: You have an error in your S
SELECT * FROM t1 WHERE a IN ( SELECT 1 INTO @v );
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'INTO @v )' at line 1
DROP TABLE t1, t2;
+#
+# BUG#37822: Correlated subquery with IN and IS UNKNOWN provides wrong result
+#
+create table t1(id integer primary key, g integer, v integer, s char(1));
+create table t2(id integer primary key, g integer, v integer, s char(1));
+insert into t1 values
+(10, 10, 10, 'l'),
+(20, 20, 20, 'l'),
+(40, 40, 40, 'l'),
+(41, 40, null, 'l'),
+(50, 50, 50, 'l'),
+(51, 50, null, 'l'),
+(60, 60, 60, 'l'),
+(61, 60, null, 'l'),
+(70, 70, 70, 'l'),
+(90, 90, null, 'l');
+insert into t2 values
+(10, 10, 10, 'r'),
+(30, 30, 30, 'r'),
+(50, 50, 50, 'r'),
+(60, 60, 60, 'r'),
+(61, 60, null, 'r'),
+(70, 70, 70, 'r'),
+(71, 70, null, 'r'),
+(80, 80, 80, 'r'),
+(81, 80, null, 'r'),
+(100,100,null, 'r');
+select *
+from t1
+where v in(select v
+from t2
+where t1.g=t2.g) is unknown;
+id g v s
+51 50 NULL l
+61 60 NULL l
+drop table t1, t2;
+End of 5.1 tests.
set optimizer_switch='';
show variables like 'optimizer_switch';
Variable_name Value
| Thread |
|---|
| • bzr commit into mysql-6.0-bugteam branch (joro:2985) Bug#37822 | Georgi Kodinov | 29 Jan 2009 |