summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-10-23 13:05:40 +0500
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-10-23 13:05:40 +0500
commit3d54e7320c8791acd7406b26af96552b57a72ca0 (patch)
treebe33b3d93e0870f51b0d9ac62457c710d6d2bc56 /mysql-test
parent531193dc422b0f5a05ded78b2db1655cdd460528 (diff)
parent620269fecf2590d6e359221a5349360ad5cb9dc3 (diff)
downloadmariadb-git-3d54e7320c8791acd7406b26af96552b57a72ca0.tar.gz
Merge mysql.com:/home/ram/work/mysql-5.1-maint
into mysql.com:/home/ram/work/b31285/b31285.5.1
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/status.result3
-rw-r--r--mysql-test/t/status.test3
2 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/status.result b/mysql-test/r/status.result
index db75044ee5d..c95b09597fc 100644
--- a/mysql-test/r/status.result
+++ b/mysql-test/r/status.result
@@ -8,6 +8,8 @@ VARIABLE_NAME VARIABLE_VALUE
TABLE_LOCKS_IMMEDIATE 2
TABLE_LOCKS_WAITED 0
SET SQL_LOG_BIN=0;
+set @old_general_log = @@global.general_log;
+set global general_log = 'OFF';
drop table if exists t1;
create table t1(n int) engine=myisam;
insert into t1 values(1);
@@ -20,6 +22,7 @@ show status like 'Table_locks_waited';
Variable_name Value
Table_locks_waited 1
drop table t1;
+set global general_log = @old_general_log;
select 1;
1
1
diff --git a/mysql-test/t/status.test b/mysql-test/t/status.test
index 1cd5aa1726a..6a11791924a 100644
--- a/mysql-test/t/status.test
+++ b/mysql-test/t/status.test
@@ -21,6 +21,8 @@ select * from information_schema.session_status where variable_name like 'Table_
connection con1;
# ++Immediate = 3
SET SQL_LOG_BIN=0;
+set @old_general_log = @@global.general_log;
+set global general_log = 'OFF';
--disable_warnings
# ++Immediate = 4
drop table if exists t1;
@@ -60,6 +62,7 @@ reap;
# ++Immediate = 16 + $wait_condition_reps
show status like 'Table_locks_waited';
drop table t1;
+set global general_log = @old_general_log;
disconnect con2;
disconnect con1;