List:Internals« Previous MessageNext Message »
From:sergeyv Date:September 8 2005 10:09am
Subject:bk commit into 4.1 tree (SergeyV:1.2391) BUG#12517
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of sergeyv. When sergeyv 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.2391 05/09/08 12:09:30 SergeyV@selena. +2 -0
  Modified test case for bug #12517

  mysql-test/t/connect.test
    1.13 05/09/08 12:09:24 SergeyV@selena. +10 -10
    Modified test case for bug #12517

  mysql-test/r/connect.result
    1.12 05/09/08 12:09:23 SergeyV@selena. +2 -12
    Modified test case for bug #12517

# 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:	SergeyV
# Host:	selena.
# Root:	H:/MYSQL/src/#12517-mysql-4.1

--- 1.11/mysql-test/r/connect.result	2005-08-30 17:22:09 +04:00
+++ 1.12/mysql-test/r/connect.result	2005-09-08 12:09:23 +04:00
@@ -1,3 +1,4 @@
+drop table if exists t1,t2;
 show tables;
 Tables_in_mysql
 columns_priv
@@ -65,19 +66,8 @@
 Tables_in_test
 delete from mysql.user where user=_binary"test";
 flush privileges;
-use test;
-drop table if exists t1;
-Warnings:
-Note	1051	Unknown table 't1'
 create table t1 (id integer not null auto_increment primary key);
-drop table if exists t2;
-Warnings:
-Note	1051	Unknown table 't2'
 create temporary table t2(id integer not null auto_increment primary key);
 set @id := 1;
 delete from t1 where id like @id;
-use test;
-drop table if exists t2;
-Warnings:
-Note	1051	Unknown table 't2'
-drop table if exists t1;
+drop table t1;

--- 1.12/mysql-test/t/connect.test	2005-08-30 17:22:10 +04:00
+++ 1.13/mysql-test/t/connect.test	2005-09-08 12:09:24 +04:00
@@ -6,6 +6,10 @@
 # This test makes no sense with the embedded server
 --source include/not_embedded.inc
 
+--disable_warnings
+drop table if exists t1,t2;
+--enable_warnings
+
 #connect (con1,localhost,root,,"");
 #show tables;
 connect (con1,localhost,root,,mysql);
@@ -77,22 +81,18 @@
 delete from mysql.user where user=_binary"test";
 flush privileges;
 
-# Test for bug #12517.
+#
+# Bug#12517: Clear user variables and replication events before 
+#            closing temp tables in thread cleanup.
 connect (con2,localhost,root,,test);
 connection con2;
-use test;
-drop table if exists t1;
 create table t1 (id integer not null auto_increment primary key);
-drop table if exists t2;
 create temporary table t2(id integer not null auto_increment primary key);
 set @id := 1;
 delete from t1 where id like @id;
 disconnect con2;
-sleep 5;
-connect (con1,localhost,root,,test);
-connection con1;
-use test;
-drop table if exists t2;
-drop table if exists t1;
+--sleep 5
+connection default;
+drop table t1;
 
 # End of 4.1 tests
Thread
bk commit into 4.1 tree (SergeyV:1.2391) BUG#12517sergeyv8 Sep