summaryrefslogtreecommitdiff
path: root/mysql-test/r/ps.result
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-05-04 16:53:10 +0400
committerkonstantin@mysql.com <>2005-05-04 16:53:10 +0400
commit70a6d6c9def2a0b009532ac0560ea6bfea749ca8 (patch)
treea60a9615f0f20382c6e1432e7dddee8fcac6ec9a /mysql-test/r/ps.result
parent92e4e1a3f883c0d3f22a28919a6bd65beae83d16 (diff)
downloadmariadb-git-70a6d6c9def2a0b009532ac0560ea6bfea749ca8.tar.gz
Post-merge fixes for Bug#9096 "select doesn't return all matched
records if prepared statements is used" (see comments to the changed files).
Diffstat (limited to 'mysql-test/r/ps.result')
-rw-r--r--mysql-test/r/ps.result25
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/r/ps.result b/mysql-test/r/ps.result
index bbd95da2f82..c0f4412b3d8 100644
--- a/mysql-test/r/ps.result
+++ b/mysql-test/r/ps.result
@@ -570,3 +570,28 @@ id
deallocate prepare stmt|
drop procedure p1|
drop table t1|
+drop table if exists t1;
+Warnings:
+Note 1051 Unknown table 't1'
+create table t1 (c1 int(11) not null, c2 int(11) not null,
+primary key (c1,c2), key c2 (c2), key c1 (c1));
+insert into t1 values (200887, 860);
+insert into t1 values (200887, 200887);
+select * from t1 where (c1=200887 and c2=200887) or c2=860;
+c1 c2
+200887 860
+200887 200887
+prepare stmt from
+"select * from t1 where (c1=200887 and c2=200887) or c2=860";
+execute stmt;
+c1 c2
+200887 860
+200887 200887
+prepare stmt from
+"select * from t1 where (c1=200887 and c2=?) or c2=?";
+set @a=200887, @b=860;
+execute stmt using @a, @b;
+c1 c2
+200887 860
+200887 200887
+deallocate prepare stmt;