Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-4.1
into c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/mysql-5.0
This commit is contained in:
commit
2fdea2c26d
@ -1,3 +1,4 @@
|
|||||||
|
drop table if exists t1,t2;
|
||||||
show tables;
|
show tables;
|
||||||
Tables_in_mysql
|
Tables_in_mysql
|
||||||
columns_priv
|
columns_priv
|
||||||
@ -71,3 +72,8 @@ show tables;
|
|||||||
Tables_in_test
|
Tables_in_test
|
||||||
delete from mysql.user where user=_binary"test";
|
delete from mysql.user where user=_binary"test";
|
||||||
flush privileges;
|
flush privileges;
|
||||||
|
create table t1 (id integer not null auto_increment primary key);
|
||||||
|
create temporary table t2(id integer not null auto_increment primary key);
|
||||||
|
set @id := 1;
|
||||||
|
delete from t1 where id like @id;
|
||||||
|
drop table t1;
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
# This test makes no sense with the embedded server
|
# This test makes no sense with the embedded server
|
||||||
--source include/not_embedded.inc
|
--source include/not_embedded.inc
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
drop table if exists t1,t2;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
#connect (con1,localhost,root,,"");
|
#connect (con1,localhost,root,,"");
|
||||||
#show tables;
|
#show tables;
|
||||||
connect (con1,localhost,root,,mysql);
|
connect (con1,localhost,root,,mysql);
|
||||||
@ -77,4 +81,18 @@ show tables;
|
|||||||
delete from mysql.user where user=_binary"test";
|
delete from mysql.user where user=_binary"test";
|
||||||
flush privileges;
|
flush privileges;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#12517: Clear user variables and replication events before
|
||||||
|
# closing temp tables in thread cleanup.
|
||||||
|
connect (con2,localhost,root,,test);
|
||||||
|
connection con2;
|
||||||
|
create table t1 (id integer not null auto_increment primary key);
|
||||||
|
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
|
||||||
|
connection default;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
@ -266,5 +266,5 @@ SignalSender::execNodeStatus(void* signalSender,
|
|||||||
|
|
||||||
template SimpleSignal* SignalSender::waitFor<WaitForNode>(unsigned, WaitForNode&);
|
template SimpleSignal* SignalSender::waitFor<WaitForNode>(unsigned, WaitForNode&);
|
||||||
template SimpleSignal* SignalSender::waitFor<WaitForAny>(unsigned, WaitForAny&);
|
template SimpleSignal* SignalSender::waitFor<WaitForAny>(unsigned, WaitForAny&);
|
||||||
template Vector<SimpleSignal*>;
|
template class Vector<SimpleSignal*>;
|
||||||
|
|
||||||
|
@ -377,12 +377,12 @@ void THD::cleanup(void)
|
|||||||
mysql_ha_flush(this, (TABLE_LIST*) 0,
|
mysql_ha_flush(this, (TABLE_LIST*) 0,
|
||||||
MYSQL_HA_CLOSE_FINAL | MYSQL_HA_FLUSH_ALL);
|
MYSQL_HA_CLOSE_FINAL | MYSQL_HA_FLUSH_ALL);
|
||||||
hash_free(&handler_tables_hash);
|
hash_free(&handler_tables_hash);
|
||||||
|
delete_dynamic(&user_var_events);
|
||||||
|
hash_free(&user_vars);
|
||||||
close_temporary_tables(this);
|
close_temporary_tables(this);
|
||||||
my_free((char*) variables.time_format, MYF(MY_ALLOW_ZERO_PTR));
|
my_free((char*) variables.time_format, MYF(MY_ALLOW_ZERO_PTR));
|
||||||
my_free((char*) variables.date_format, MYF(MY_ALLOW_ZERO_PTR));
|
my_free((char*) variables.date_format, MYF(MY_ALLOW_ZERO_PTR));
|
||||||
my_free((char*) variables.datetime_format, MYF(MY_ALLOW_ZERO_PTR));
|
my_free((char*) variables.datetime_format, MYF(MY_ALLOW_ZERO_PTR));
|
||||||
delete_dynamic(&user_var_events);
|
|
||||||
hash_free(&user_vars);
|
|
||||||
sp_cache_clear(&sp_proc_cache);
|
sp_cache_clear(&sp_proc_cache);
|
||||||
sp_cache_clear(&sp_func_cache);
|
sp_cache_clear(&sp_func_cache);
|
||||||
if (global_read_lock)
|
if (global_read_lock)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user