diff options
author | Igor Babaev <igor@askmonty.org> | 2011-08-16 22:48:35 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-08-16 22:48:35 -0700 |
commit | 249a10c7dd879b26665a7d14d9ce4a5c90ca8c77 (patch) | |
tree | 77bb0b1d419360de2ce89118c7c3e3081849b123 /mysql-test/t/join_outer.test | |
parent | 923dc9ea768dac424f27ae8d8634708e953dab0c (diff) | |
download | mariadb-git-249a10c7dd879b26665a7d14d9ce4a5c90ca8c77.tar.gz |
Fixed LP bug #825035.
The value of maybe_null flag should be saved for the second execution
of a prepared statement from SELECT that uses an outer join.
Diffstat (limited to 'mysql-test/t/join_outer.test')
-rw-r--r-- | mysql-test/t/join_outer.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/join_outer.test b/mysql-test/t/join_outer.test index 253808c4eb7..d47ceab6b74 100644 --- a/mysql-test/t/join_outer.test +++ b/mysql-test/t/join_outer.test @@ -1154,3 +1154,22 @@ SELECT t2.b FROM t1 LEFT JOIN t2 ON (t2.b) IN (SELECT c2 from t3) AND t2.a = 1; DROP TABLE t1,t2,t3; + +--echo # +--echo # LP bug #825035: second execution of PS with outer join +--echo # + +CREATE TABLE t1 (a int); +INSERT INTO t1 VALUES (1),(2),(3),(4); + +CREATE TABLE t2 (a int); + +PREPARE stmt FROM +"SELECT * FROM t1 LEFT JOIN t2 ON t1.a = t2.a"; + +EXECUTE stmt; +EXECUTE stmt; + +DEALLOCATE PREPARE stmt; + +DROP TABLE t1,t2; |