diff options
author | Georgi Kodinov <joro@sun.com> | 2010-02-25 17:12:15 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2010-02-25 17:12:15 +0200 |
commit | 6b6c2635d535996043a87705155f0644bdf4ea07 (patch) | |
tree | 6b204beab5be74713c33d8da3e6355f00c038850 /mysql-test/t/delete.test | |
parent | 792fc9f7844575675206f873a0fa1d6e7fb8ad4f (diff) | |
parent | e3d0b6d7929ce7080958086c6f4fca61dd13de2e (diff) | |
download | mariadb-git-6b6c2635d535996043a87705155f0644bdf4ea07.tar.gz |
merge
Diffstat (limited to 'mysql-test/t/delete.test')
-rw-r--r-- | mysql-test/t/delete.test | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/mysql-test/t/delete.test b/mysql-test/t/delete.test index 2f51fafd6a6..7bbc470137a 100644 --- a/mysql-test/t/delete.test +++ b/mysql-test/t/delete.test @@ -291,6 +291,21 @@ DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1; DROP TABLE t1; DROP FUNCTION f1; + +--echo # +--echo # Bug #49552 : sql_buffer_result cause crash + not found records +--echo # in multitable delete/subquery +--echo # + +CREATE TABLE t1(a INT); +INSERT INTO t1 VALUES (1),(2),(3); +SET SESSION SQL_BUFFER_RESULT=1; +DELETE t1 FROM (SELECT SUM(a) a FROM t1) x,t1; + +SET SESSION SQL_BUFFER_RESULT=DEFAULT; +SELECT * FROM t1; +DROP TABLE t1; + --echo End of 5.0 tests --echo # @@ -360,18 +375,4 @@ DELETE IGNORE FROM t1; DROP TABLE t1; ---echo # ---echo # Bug #49552 : sql_buffer_result cause crash + not found records ---echo # in multitable delete/subquery ---echo # - -CREATE TABLE t1(a INT); -INSERT INTO t1 VALUES (1),(2),(3); -SET SESSION SQL_BUFFER_RESULT=1; -DELETE t1 FROM (SELECT SUM(a) a FROM t1) x,t1; - -SET SESSION SQL_BUFFER_RESULT=DEFAULT; -SELECT * FROM t1; -DROP TABLE t1; - --echo End of 5.1 tests |