From: Date: November 3 2005 10:38am Subject: bk commit into 5.0 tree (sergefp:1.1967) List-Archive: http://lists.mysql.com/internals/31862 Message-Id: <20051103093852.9ECCD37B8A@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.1967 05/11/03 12:38:46 sergefp@stripped +2 -0 Post-merge fixes mysql-test/t/view.test 1.120 05/11/03 12:38:37 sergefp@stripped +24 -7 Post-merge fixes mysql-test/r/view.result 1.129 05/11/03 12:38:37 sergefp@stripped +12 -12 Post-merge fixes # 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 --- 1.128/mysql-test/r/view.result 2005-11-03 10:28:08 +03:00 +++ 1.129/mysql-test/r/view.result 2005-11-03 12:38:37 +03:00 @@ -2323,6 +2323,18 @@ 1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where DROP VIEW v1,v2; DROP TABLE t1,t2,t3; +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; +create view v2 as select f1 ,group_concat(f2 order by f2 desc) from t1 group by f1; +select * from v1; +f1 group_concat(f2 order by f2 asc) +1 1,2,3 +select * from v2; +f1 group_concat(f2 order by f2 desc) +1 3,2,1 +drop view v1,v2; +drop table t1; 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); @@ -2344,15 +2356,3 @@ 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; -create view v2 as select f1 ,group_concat(f2 order by f2 desc) from t1 group by f1; -select * from v1; -f1 group_concat(f2 order by f2 asc) -1 1,2,3 -select * from v2; -f1 group_concat(f2 order by f2 desc) -1 3,2,1 -drop view v1,v2; -drop table t1; --- 1.119/mysql-test/t/view.test 2005-11-03 10:28:08 +03:00 +++ 1.120/mysql-test/t/view.test 2005-11-03 12:38:37 +03:00 @@ -2190,13 +2190,6 @@ 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); @@ -2207,3 +2200,27 @@ select * from v2; drop view v1,v2; drop table t1; + +# +# BUG#14026 Crash on second PS execution when using views +# +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; +execute stmt1 using @parm1; +drop view v1; +drop table t1,t2,t3,t4;