Commit ef0416c1 authored by unknown's avatar unknown

automerge windows fixes.

parents 0d09e3a5 7c8983e9
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
--disable_warnings --disable_warnings
drop table if exists t5 ; drop table if exists t5 ;
--enable_warnings --enable_warnings
--disable_query_log
SET TIME_ZONE= '+03:00';
--enable_query_log
set @arg01= 8; set @arg01= 8;
set @arg02= 8.0; set @arg02= 8.0;
set @arg03= 80.00000000000e-1; set @arg03= 80.00000000000e-1;
......
...@@ -3425,7 +3425,7 @@ sub restart_forced_by_test ...@@ -3425,7 +3425,7 @@ sub restart_forced_by_test
# Return timezone value of tinfo or default value # Return timezone value of tinfo or default value
sub timezone { sub timezone {
my ($tinfo)= @_; my ($tinfo)= @_;
return $tinfo->{timezone} || "GMT-3"; return $tinfo->{timezone} || "DEFAULT";
} }
...@@ -3455,7 +3455,11 @@ sub run_testcase ($$) { ...@@ -3455,7 +3455,11 @@ sub run_testcase ($$) {
# Init variables that can change between each test case # Init variables that can change between each test case
# ------------------------------------------------------- # -------------------------------------------------------
my $timezone= timezone($tinfo); my $timezone= timezone($tinfo);
if ($timezone ne 'DEFAULT') {
$ENV{'TZ'}= $timezone; $ENV{'TZ'}= $timezone;
} else {
delete($ENV{'TZ'});
}
mtr_verbose("Setting timezone: $timezone"); mtr_verbose("Setting timezone: $timezone");
if ( ! using_extern() ) if ( ! using_extern() )
......
...@@ -380,6 +380,7 @@ INSERT INTO t1 VALUES (VERSION()); ...@@ -380,6 +380,7 @@ INSERT INTO t1 VALUES (VERSION());
Warnings: Warnings:
Note 1592 Statement may not be safe to log in statement format. Note 1592 Statement may not be safe to log in statement format.
DELETE FROM t1; DELETE FROM t1;
SET TIME_ZONE= '+03:00';
SET TIMESTAMP=1000000; SET TIMESTAMP=1000000;
INSERT INTO t1 VALUES INSERT INTO t1 VALUES
(CURDATE()), (CURDATE()),
......
...@@ -422,6 +422,7 @@ DELETE FROM t1; ...@@ -422,6 +422,7 @@ DELETE FROM t1;
# following following functions depend on the TIMESTAMP variable and # following following functions depend on the TIMESTAMP variable and
# don't generate a warning. # don't generate a warning.
SET TIME_ZONE= '+03:00';
SET TIMESTAMP=1000000; SET TIMESTAMP=1000000;
INSERT INTO t1 VALUES INSERT INTO t1 VALUES
(CURDATE()), (CURDATE()),
......
call mtr.add_suppression("Checking table: '.\/mysqltest\/t_corrupted2'");
call mtr.add_suppression("Recovering table: '.\/mysqltest\/t_corrupted2'");
call mtr.add_suppression("Table '.\/mysqltest\/t_corrupted2' is marked as crashed and should be repaired");
select @@global.maria_recover; select @@global.maria_recover;
@@global.maria_recover @@global.maria_recover
BACKUP BACKUP
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
--source include/have_maria.inc --source include/have_maria.inc
call mtr.add_suppression("Checking table: '.\/mysqltest\/t_corrupted2'"); --disable_query_log
call mtr.add_suppression("Recovering table: '.\/mysqltest\/t_corrupted2'"); # Note: \\. matches a single period. We use '.' as directory separator to
call mtr.add_suppression("Table '.\/mysqltest\/t_corrupted2' is marked as crashed and should be repaired"); # account for Unix and Windows variation.
call mtr.add_suppression("Checking table: '\\..mysqltest.t_corrupted2'");
call mtr.add_suppression("Recovering table: '\\..mysqltest.t_corrupted2'");
call mtr.add_suppression("Table '\\..mysqltest.t_corrupted2' is marked as crashed and should be repaired");
--enable_query_log
# Note: we're setting an environment variable (not prefixing it by $), # Note: we're setting an environment variable (not prefixing it by $),
# so that the perl code below can access it. # so that the perl code below can access it.
......
...@@ -48,6 +48,7 @@ show create table t3; ...@@ -48,6 +48,7 @@ show create table t3;
let $count=12; let $count=12;
--echo $count inserts; --echo $count inserts;
--disable_query_log --disable_query_log
SET TIME_ZONE= '+03:00';
begin; begin;
while ($count) while ($count)
{ {
......
call mtr.add_suppression("./test/t1_will_crash");
call mtr.add_suppression("Got an error from unknown thread, ha_myisam.cc");
CREATE TABLE t1_will_crash (a INT, KEY (a)) ENGINE=MyISAM; CREATE TABLE t1_will_crash (a INT, KEY (a)) ENGINE=MyISAM;
INSERT INTO t1_will_crash VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11); INSERT INTO t1_will_crash VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
FLUSH TABLES; FLUSH TABLES;
......
# test the auto-recover (--myisam-recover) of partitioned myisam tables # test the auto-recover (--myisam-recover) of partitioned myisam tables
call mtr.add_suppression("./test/t1_will_crash"); --disable_query_log
call mtr.add_suppression("..test.t1_will_crash");
call mtr.add_suppression("Got an error from unknown thread, ha_myisam.cc"); call mtr.add_suppression("Got an error from unknown thread, ha_myisam.cc");
--enable_query_log
--source include/have_partition.inc --source include/have_partition.inc
--disable_warnings --disable_warnings
......
...@@ -18,6 +18,7 @@ Server_id Host Port Rpl_recovery_rank Master_id ...@@ -18,6 +18,7 @@ Server_id Host Port Rpl_recovery_rank Master_id
drop table t1; drop table t1;
stop slave; stop slave;
create table t2(id int auto_increment primary key, created datetime); create table t2(id int auto_increment primary key, created datetime);
SET TIME_ZONE= '+03:00';
set timestamp=12345; set timestamp=12345;
insert into t2 set created=now(); insert into t2 set created=now();
select * from t2; select * from t2;
......
...@@ -23,6 +23,7 @@ connection master; ...@@ -23,6 +23,7 @@ connection master;
# Test replication of timestamp # Test replication of timestamp
create table t2(id int auto_increment primary key, created datetime); create table t2(id int auto_increment primary key, created datetime);
SET TIME_ZONE= '+03:00';
set timestamp=12345; set timestamp=12345;
insert into t2 set created=now(); insert into t2 set created=now();
select * from t2; select * from t2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment