Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed May 11, 2021
1 parent b1c9966 commit 32db4b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dm/config/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,5 +827,8 @@ func AdjustTargetDBTimeZone(config *DBConfig) {
return
}
}
if config.Session == nil {
config.Session = make(map[string]string, 1)
}
config.Session["time_zone"] = defaultTimeZone
}
3 changes: 1 addition & 2 deletions tests/all_mode/data/db2.prepare.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ create table t2 (
name varchar(20),
ts timestamp,
PRIMARY KEY (id));;
insert into t2 (name, ts) values ('Arya', now()), ('Bran', '2021-05-11 10:01:05');
insert into t2 (name) values ('Sansa');
insert into t2 (name, ts) values ('Arya', now()), ('Bran', '2021-05-11 10:01:05'), ('Sansa', NULL);

-- test block-allow-list
drop database if exists `ignore_db`;
Expand Down

0 comments on commit 32db4b2

Please sign in to comment.