From: Date: November 3 2005 8:28am Subject: bk commit into 5.0 tree (sergefp:1.1965) List-Archive: http://lists.mysql.com/internals/31860 Message-Id: <20051103072818.5B2E937B89@newbox.mylan> Below is the list of changes that have just been committed into a local 5.0 repository of psergey. When psergey does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.1965 05/11/03 10:28:12 sergefp@stripped +2 -0 Merged mysql-test/t/view.test 1.119 05/11/03 10:28:08 sergefp@stripped +0 -15 Merged mysql-test/r/view.result 1.128 05/11/03 10:28:08 sergefp@stripped +0 -0 Merged # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: sergefp # Host: newbox.mylan # Root: /home/psergey/mysql-5.0-bug14026-r2/RESYNC --- 1.127/mysql-test/r/view.result 2005-11-01 17:24:32 +03:00 +++ 1.128/mysql-test/r/view.result 2005-11-03 10:28:08 +03:00 @@ -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 @@ 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; --- 1.118/mysql-test/t/view.test 2005-11-01 17:24:55 +03:00 +++ 1.119/mysql-test/t/view.test 2005-11-03 10:28:08 +03:00 @@ -1,5 +1,5 @@ --disable_warnings -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; --enable_warnings @@ -2190,6 +2190,13 @@ DROP TABLE t1,t2,t3; # +prepare stmt1 from "select count(*) from v1 where x = ?"; +set @parm1=1; + +execute stmt1 using @parm1; +execute stmt1 using @parm1; +drop view v1; +drop table t1,t2,t3,t4; # Bug #14466 lost sort order in GROUP_CONCAT() in a view # create table t1 (f1 int, f2 int);