diff options
author | konstantin@mysql.com <> | 2004-08-24 20:17:11 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-08-24 20:17:11 +0400 |
commit | ae18dc3ec82e607f041878c4760ba7526999ae86 (patch) | |
tree | abcc02d1c616c2795f2ca78dd7032b01d865d0ce /mysql-test/r/ps.result | |
parent | f0fffbe21b6ab3fb9303acaad99872e3844ddef5 (diff) | |
download | mariadb-git-ae18dc3ec82e607f041878c4760ba7526999ae86.tar.gz |
Fix for Bug#5034 "prepared "select 1 into @arg15", second
execute crashes server": we were deleting lex->result
after each execute, but prepared statements assumed that
it's left intact.
The fix adds cleanup() method to select_result hierarchy,
so that result objects can be reused.
Plus we now need to delete result objects more wisely.
Diffstat (limited to 'mysql-test/r/ps.result')
-rw-r--r-- | mysql-test/r/ps.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/ps.result b/mysql-test/r/ps.result index 0523143f91d..98095930669 100644 --- a/mysql-test/r/ps.result +++ b/mysql-test/r/ps.result @@ -226,3 +226,18 @@ a b execute stmt1; a b deallocate prepare stmt1; +drop table t1; +prepare stmt1 from "select 1 into @var"; +execute stmt1; +execute stmt1; +prepare stmt1 from "create table t1 select 1 as i"; +execute stmt1; +drop table t1; +execute stmt1; +prepare stmt1 from "insert into t1 select i from t1"; +execute stmt1; +execute stmt1; +prepare stmt1 from "select * from t1 into outfile 'f1.txt'"; +execute stmt1; +deallocate prepare stmt1; +drop table t1; |