MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:timour Date:August 22 2005 2:05pm
Subject:bk commit into 5.0 tree (timour:1.1900) BUG#6558
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of timka. When timka 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.1900 05/08/22 17:04:55 timour@stripped +2 -0
  Test case for BUG#6558 - Views: create fails with JOIN ... USING
  
  The bug is non-view specific, and it resulted from incorrect
  name resolution of natural join result columns. The bug is
  fixed by WL#2486.

  mysql-test/t/select.test
    1.66 05/08/22 17:04:52 timour@stripped +13 -0
    Added test case for BUG#6558

  mysql-test/r/select.result
    1.81 05/08/22 17:04:52 timour@stripped +10 -0
    Added test case for BUG#6558

# 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:	timour
# Host:	lamia.home
# Root:	/home/timka/mysql/src/5.0-dbg

--- 1.80/mysql-test/r/select.result	2005-08-22 14:46:06 +03:00
+++ 1.81/mysql-test/r/select.result	2005-08-22 17:04:52 +03:00
@@ -2765,3 +2765,13 @@
  2	2	 2	 one 
  2	2	 2	 two 
 drop table t1,t2;
+create table t1 (empnum smallint, grp int);
+create table t2 (empnum int, name char(5));
+insert into t1 values(1,1);
+insert into t2 values(1,'bob');
+create view v1 as select * from t2 inner join t1 using (empnum);
+select * from v1;
+empnum	name	grp
+1	bob	1
+drop table t1,t2;
+drop view v1;

--- 1.65/mysql-test/t/select.test	2005-08-22 14:46:06 +03:00
+++ 1.66/mysql-test/t/select.test	2005-08-22 17:04:52 +03:00
@@ -2358,3 +2358,16 @@
 insert into t2 values (" 2", " one "),(" 2", " two ");
 select * from t1 left join t2 on f1 = f3;
 drop table t1,t2;
+
+#
+# Bug #6558 Views: CREATE VIEW fails with JOIN ... USING
+#
+
+create table t1 (empnum smallint, grp int);
+create table t2 (empnum int, name char(5));
+insert into t1 values(1,1);
+insert into t2 values(1,'bob');
+create view v1 as select * from t2 inner join t1 using (empnum);
+select * from v1;
+drop table t1,t2;
+drop view v1;
Thread
bk commit into 5.0 tree (timour:1.1900) BUG#6558timour22 Aug