diff options
author | unknown <sergefp@mysql.com> | 2005-11-03 10:28:12 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-11-03 10:28:12 +0300 |
commit | 5c29321c15bec3bf999f7a62a4404cf3f9153250 (patch) | |
tree | 0ee786b29c5953b014b95552b9427e9ce4567472 /mysql-test/r/view.result | |
parent | f14973d3d7d0df79c0183efdfc86a1f13f684845 (diff) | |
parent | 2fa9cc2e357056e1e874da77d1ff71d62db1338c (diff) | |
download | mariadb-git-5c29321c15bec3bf999f7a62a4404cf3f9153250.tar.gz |
Merged
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r-- | mysql-test/r/view.result | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index a74feb4de17..52ccabf60cd 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -1,4 +1,4 @@ -drop table if exists t1,t2,t9,`t1a``b`,v1,v2,v3,v4,v5,v6; +drop table if exists t1,t2,t3,t4,t9,`t1a``b`,v1,v2,v3,v4,v5,v6; drop view if exists t1,t2,`t1a``b`,v1,v2,v3,v4,v5,v6; drop database if exists mysqltest; use test; @@ -2323,6 +2323,27 @@ id select_type table type possible_keys key key_len ref rows Extra 1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where DROP VIEW v1,v2; DROP TABLE t1,t2,t3; +create table t1 (x int, y int); +create table t2 (x int, y int, z int); +create table t3 (x int, y int, z int); +create table t4 (x int, y int, z int); +create view v1 as +select t1.x +from ( +(t1 join t2 on ((t1.y = t2.y))) +join +(t3 left join t4 on (t3.y = t4.y) and (t3.z = t4.z)) +); +prepare stmt1 from "select count(*) from v1 where x = ?"; +set @parm1=1; +execute stmt1 using @parm1; +count(*) +0 +execute stmt1 using @parm1; +count(*) +0 +drop view v1; +drop table t1,t2,t3,t4; create table t1 (f1 int, f2 int); insert into t1 values(1,1),(1,2),(1,3); create view v1 as select f1 ,group_concat(f2 order by f2 asc) from t1 group by f1; |