summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_temporary.test
diff options
context:
space:
mode:
authorunknown <aelkin@mysql.com>2006-05-14 11:35:33 +0300
committerunknown <aelkin@mysql.com>2006-05-14 11:35:33 +0300
commitac812dfc91ccd9ec63f714506bdf1dd80356c287 (patch)
treee607497939cd17c37ea8d6837e7988ab1c5da74c /mysql-test/t/rpl_temporary.test
parentfe3ac3007a3766be7e826724b6bc3cf59b9930d0 (diff)
parent62be79a2e6208873240fb0a3dafbb99f24c9e577 (diff)
downloadmariadb-git-ac812dfc91ccd9ec63f714506bdf1dd80356c287.tar.gz
Merge mysql.com:/usr_rh9/home/elkin.rh9/4.1
into mysql.com:/usr_rh9/home/elkin.rh9/MySQL/Merge/5.0 mysql-test/r/mysqlbinlog.result: Auto merged sql/mysql_priv.h: Auto merged mysql-test/r/drop_temp_table.result: manual merge use local mysql-test/r/mix_innodb_myisam_binlog.result: manual merge use local mysql-test/r/rpl_temporary.result: manual merge use local mysql-test/t/mysqlbinlog.test: manual merge mysql-test/t/rpl_temporary.test: manual merge. More than the bugs fixes: using disconnect con1 from 4.1's version instead of kill con1. sql/sql_base.cc: manual merge, should be in sync with 4.1's version.
Diffstat (limited to 'mysql-test/t/rpl_temporary.test')
-rw-r--r--mysql-test/t/rpl_temporary.test37
1 files changed, 22 insertions, 15 deletions
diff --git a/mysql-test/t/rpl_temporary.test b/mysql-test/t/rpl_temporary.test
index 7d2222ea79a..874f61beab1 100644
--- a/mysql-test/t/rpl_temporary.test
+++ b/mysql-test/t/rpl_temporary.test
@@ -163,24 +163,19 @@ drop table t5;
# value was set up at the moment of temp table creation
#
connection con1;
-set @session.pseudo_thread_id=100;
+set @@session.pseudo_thread_id=100;
create temporary table t101 (id int);
create temporary table t102 (id int);
-set @session.pseudo_thread_id=200;
+set @@session.pseudo_thread_id=200;
create temporary table t201 (id int);
-create temporary table `#not_user_table_prefixed_with_hash_sign_no_harm` (id int);
-
-#
-# Don't kill our own connection to the server as
-# the result code differs depending on platform.
-#
-# Select the id to kill into a variable of mysqltest
-let $con1_id= `select connection_id()`;
-# Switch connection to avoid killing our own connection
-connection master;
---disable_query_log
-eval kill $con1_id;
---enable_query_log
+create temporary table `t``201` (id int);
+# emulate internal temp table not to come to binlog
+create temporary table `#sql_not_user_table202` (id int);
+set @@session.pseudo_thread_id=300;
+create temporary table t301 (id int);
+create temporary table t302 (id int);
+create temporary table `#sql_not_user_table303` (id int);
+disconnect con1;
#now do something to show that slave is ok after DROP temp tables
connection master;
@@ -194,4 +189,16 @@ select * from t1 /* must be 1 */;
connection master;
drop table t1;
+#
+#14157: utf8 encoding in binlog without set character_set_client
+#
+--exec $MYSQL --character-sets-dir=../sql/share/charsets/ --default-character-set=koi8r test -e 'create table t1 (a int); set names koi8r; create temporary table `только герои срезают рашпилем грим` (a int); insert into `только герои срезают рашпилем грим` values (1); insert into t1 select * from `только герои срезают рашпилем грим`'
+
+sync_slave_with_master;
+#connection slave;
+select * from t1;
+
+connection master;
+drop table t1;
+
# End of 5.0 tests