summaryrefslogtreecommitdiff
path: root/mysql-test/t/ps.test
diff options
context:
space:
mode:
authorEvgeny Potemkin <epotemkin@mysql.com>2009-12-02 16:49:21 +0300
committerEvgeny Potemkin <epotemkin@mysql.com>2009-12-02 16:49:21 +0300
commit1eda9dc777efe7d2e6db05460ab00b67ad3d7e41 (patch)
treee141eed482706ba08b9c6f03957e908c35020e2a /mysql-test/t/ps.test
parentd7abca9ac38fc36eb3ff7f96409c0cabe5f5c03e (diff)
parentd969cbc5783a88406428a94ae4a01036e742178c (diff)
downloadmariadb-git-1eda9dc777efe7d2e6db05460ab00b67ad3d7e41.tar.gz
Auto-merged.
Diffstat (limited to 'mysql-test/t/ps.test')
-rw-r--r--mysql-test/t/ps.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/ps.test b/mysql-test/t/ps.test
index db5994d434b..c160ba993d5 100644
--- a/mysql-test/t/ps.test
+++ b/mysql-test/t/ps.test
@@ -1991,6 +1991,27 @@ select @arg;
execute stmt using @arg;
deallocate prepare stmt;
+--echo #
+--echo # Bug#48508: Crash on prepared statement re-execution.
+--echo #
+create table t1(b int);
+insert into t1 values (0);
+create view v1 AS select 1 as a from t1 where b;
+prepare stmt from "select * from v1 where a";
+execute stmt;
+execute stmt;
+drop table t1;
+drop view v1;
+
+create table t1(a bigint);
+create table t2(b tinyint);
+insert into t2 values (null);
+prepare stmt from "select 1 from t1 join t2 on a xor b where b > 1 and a =1";
+execute stmt;
+execute stmt;
+drop table t1,t2;
+--echo #
+
--echo End of 5.0 tests.
#