automerge windows fixes.
This commit is contained in:
commit
ef0416c14c
@ -30,6 +30,9 @@
|
||||
--disable_warnings
|
||||
drop table if exists t5 ;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
SET TIME_ZONE= '+03:00';
|
||||
--enable_query_log
|
||||
set @arg01= 8;
|
||||
set @arg02= 8.0;
|
||||
set @arg03= 80.00000000000e-1;
|
||||
|
@ -3425,7 +3425,7 @@ sub restart_forced_by_test
|
||||
# Return timezone value of tinfo or default value
|
||||
sub timezone {
|
||||
my ($tinfo)= @_;
|
||||
return $tinfo->{timezone} || "GMT-3";
|
||||
return $tinfo->{timezone} || "DEFAULT";
|
||||
}
|
||||
|
||||
|
||||
@ -3455,7 +3455,11 @@ sub run_testcase ($$) {
|
||||
# Init variables that can change between each test case
|
||||
# -------------------------------------------------------
|
||||
my $timezone= timezone($tinfo);
|
||||
$ENV{'TZ'}= $timezone;
|
||||
if ($timezone ne 'DEFAULT') {
|
||||
$ENV{'TZ'}= $timezone;
|
||||
} else {
|
||||
delete($ENV{'TZ'});
|
||||
}
|
||||
mtr_verbose("Setting timezone: $timezone");
|
||||
|
||||
if ( ! using_extern() )
|
||||
|
@ -380,6 +380,7 @@ INSERT INTO t1 VALUES (VERSION());
|
||||
Warnings:
|
||||
Note 1592 Statement may not be safe to log in statement format.
|
||||
DELETE FROM t1;
|
||||
SET TIME_ZONE= '+03:00';
|
||||
SET TIMESTAMP=1000000;
|
||||
INSERT INTO t1 VALUES
|
||||
(CURDATE()),
|
||||
|
@ -422,6 +422,7 @@ DELETE FROM t1;
|
||||
# following following functions depend on the TIMESTAMP variable and
|
||||
# don't generate a warning.
|
||||
|
||||
SET TIME_ZONE= '+03:00';
|
||||
SET TIMESTAMP=1000000;
|
||||
INSERT INTO t1 VALUES
|
||||
(CURDATE()),
|
||||
|
@ -1,6 +1,3 @@
|
||||
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;
|
||||
@@global.maria_recover
|
||||
BACKUP
|
||||
|
@ -2,9 +2,13 @@
|
||||
|
||||
--source include/have_maria.inc
|
||||
|
||||
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");
|
||||
--disable_query_log
|
||||
# Note: \\. matches a single period. We use '.' as directory separator to
|
||||
# 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 $),
|
||||
# so that the perl code below can access it.
|
||||
|
@ -48,6 +48,7 @@ show create table t3;
|
||||
let $count=12;
|
||||
--echo $count inserts;
|
||||
--disable_query_log
|
||||
SET TIME_ZONE= '+03:00';
|
||||
begin;
|
||||
while ($count)
|
||||
{
|
||||
|
@ -1,5 +1,3 @@
|
||||
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;
|
||||
INSERT INTO t1_will_crash VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
|
||||
FLUSH TABLES;
|
||||
|
@ -1,7 +1,9 @@
|
||||
# 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");
|
||||
--enable_query_log
|
||||
|
||||
--source include/have_partition.inc
|
||||
--disable_warnings
|
||||
|
@ -18,6 +18,7 @@ Server_id Host Port Rpl_recovery_rank Master_id
|
||||
drop table t1;
|
||||
stop slave;
|
||||
create table t2(id int auto_increment primary key, created datetime);
|
||||
SET TIME_ZONE= '+03:00';
|
||||
set timestamp=12345;
|
||||
insert into t2 set created=now();
|
||||
select * from t2;
|
||||
|
@ -23,6 +23,7 @@ connection master;
|
||||
# Test replication of timestamp
|
||||
|
||||
create table t2(id int auto_increment primary key, created datetime);
|
||||
SET TIME_ZONE= '+03:00';
|
||||
set timestamp=12345;
|
||||
insert into t2 set created=now();
|
||||
select * from t2;
|
||||
|
1
mysql-test/t/mysqlbinlog2-master.opt
Normal file
1
mysql-test/t/mysqlbinlog2-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--timezone=GMT-3
|
1
mysql-test/t/mysqlbinlog_row-master.opt
Normal file
1
mysql-test/t/mysqlbinlog_row-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--timezone=GMT-3
|
1
mysql-test/t/mysqlbinlog_row_innodb-master.opt
Normal file
1
mysql-test/t/mysqlbinlog_row_innodb-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--timezone=GMT-3
|
1
mysql-test/t/mysqlbinlog_row_myisam-master.opt
Normal file
1
mysql-test/t/mysqlbinlog_row_myisam-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--timezone=GMT-3
|
1
mysql-test/t/mysqlbinlog_row_trans-master.opt
Normal file
1
mysql-test/t/mysqlbinlog_row_trans-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--timezone=GMT-3
|
Loading…
x
Reference in New Issue
Block a user