1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#19188: incorrect temporary table name of DROP query in replication

merge with 5.0.

specific test case in inside of #17263 section (grave quoted name).


mysql-test/r/rpl_temporary.result:
  results changed
mysql-test/t/rpl_temporary.test:
  merge with 5.0 also to eliminate a typo with '@'.
sql/mysql_priv.h:
  merged manually with 5.0 using 5.1 specific table's name "access path".
sql/sql_base.cc:
  manual merge with 5.0. The 5.0 code was taken verbatim and changed according to
  a. rbr, b. db,tabl_name are LEX_STRIGs, c. close_temporary needs 3 args.
This commit is contained in:
unknown
2006-05-29 18:01:58 +03:00
parent 39b6d186e8
commit a91e7c2187
4 changed files with 115 additions and 110 deletions

View File

@ -165,24 +165,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;
@ -195,4 +190,5 @@ select * from t1 /* must be 1 */;
connection master;
drop table t1;
# End of 5.1 tests
--echo End of 5.1 tests