~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/log_tables.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1027
1027
 
1028
1028
TRUNCATE TABLE mysql.slow_log;
1029
1029
 
 
1030
#
 
1031
# Bug #47924 main.log_tables times out sporadically
 
1032
#
 
1033
 
 
1034
use mysql;
 
1035
# Should result in error
 
1036
--disable_warnings
 
1037
drop table if exists renamed_general_log;
 
1038
drop table if exists renamed_slow_log;
 
1039
--enable_warnings
 
1040
--error ER_CANT_RENAME_LOG_TABLE
 
1041
RENAME TABLE general_log TO renamed_general_log;
 
1042
--error ER_CANT_RENAME_LOG_TABLE
 
1043
RENAME TABLE slow_log TO renamed_slow_log;
 
1044
 
 
1045
use test;
 
1046
flush tables with read lock;
 
1047
unlock tables;
 
1048
 
1030
1049
SET @@session.long_query_time= @old_long_query_time;
1031
1050
 
1032
1051
SET @@global.log_output=       @old_log_output;