List:Commits« Previous MessageNext Message »
From:konstantin Date:August 1 2007 11:32pm
Subject:bk commit into 5.0 tree (kostja:1.2488) BUG#18287
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kostja. When kostja 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@stripped, 2007-08-02 03:32:54+04:00, kostja@bodhi.(none) +2 -0
  Add a test case for Bug#18287 create federated table always times out,
   error 1159 ' ' (fixed by the patch for Bug 25679)

  mysql-test/r/federated.result@stripped, 2007-08-02 03:32:53+04:00, kostja@bodhi.(none) +14 -0
    Update results (Bug#18287)

  mysql-test/t/federated.test@stripped, 2007-08-02 03:32:53+04:00, kostja@bodhi.(none) +14 -0
    Add a test case for Bug#18287 create federated table always times out,
     error 1159 ' '

diff -Nrup a/mysql-test/r/federated.result b/mysql-test/r/federated.result
--- a/mysql-test/r/federated.result	2007-07-25 23:23:14 +04:00
+++ b/mysql-test/r/federated.result	2007-08-02 03:32:53 +04:00
@@ -1883,6 +1883,20 @@ a	b
 2	Curly
 drop table federated.t1;
 drop table federated.t1;
+
+Bug#18287 create federated table always times out, error 1159 ' '
+
+Test that self-references work
+
+create table federated.t1 (a int primary key);
+create table federated.t2 (a int primary key)
+ENGINE=FEDERATED
+connection='mysql://root@stripped:SLAVE_PORT/federated/t1';
+insert into federated.t1 (a) values (1);
+select * from federated.t2;
+a
+1
+drop table federated.t1, federated.t2;
 DROP TABLE IF EXISTS federated.t1;
 DROP DATABASE IF EXISTS federated;
 DROP TABLE IF EXISTS federated.t1;
diff -Nrup a/mysql-test/t/federated.test b/mysql-test/t/federated.test
--- a/mysql-test/t/federated.test	2007-07-25 23:23:14 +04:00
+++ b/mysql-test/t/federated.test	2007-08-02 03:32:53 +04:00
@@ -1631,5 +1631,19 @@ drop table federated.t1;
 connection slave;
 drop table federated.t1;
 
+--echo
+--echo Bug#18287 create federated table always times out, error 1159 ' '
+--echo
+--echo Test that self-references work
+--echo
+connection slave;
+create table federated.t1 (a int primary key);
+--replace_result $SLAVE_MYPORT SLAVE_PORT
+eval create table federated.t2 (a int primary key)
+  ENGINE=FEDERATED
+  connection='mysql://root@stripped:$SLAVE_MYPORT/federated/t1';
+insert into federated.t1 (a) values (1);
+select * from federated.t2;
+drop table federated.t1, federated.t2;
 
 source include/federated_cleanup.inc;
Thread
bk commit into 5.0 tree (kostja:1.2488) BUG#18287konstantin2 Aug