Closed you06 closed 4 years ago
Please answer these questions before submitting your issue. Thanks!
road
tidb -> pump -> drainer -> tidb
Create table and insert some summer time records in source database.
CREATE TABLE `t` (`d` timestamp NOT NULL); INSERT INTO t(d) VALUES('1988-05-28 05:58:57'), ('2011-11-11 11:11:11');
mysql> SELECT d, UNIX_TIMESTAMP(d) FROM t; +---------------------+-------------------+ | d | UNIX_TIMESTAMP(d) | +---------------------+-------------------+ | 1988-05-28 05:58:57 | 580773537 | | 2011-11-11 11:11:11 | 1320981071 | +---------------------+-------------------+ 2 rows in set (0.00 sec)
mysql> SELECT d, UNIX_TIMESTAMP(d) FROM t; +---------------------+-------------------+ | d | UNIX_TIMESTAMP(d) | +---------------------+-------------------+ | 2011-11-11 11:11:11 | 1320981071 | | 1988-05-28 06:58:57 | 580777137 | +---------------------+-------------------+ 2 rows in set (0.00 sec)
1988-05-28 05:58:57 instead of 1988-05-28 06:58:57 in target db.
1988-05-28 05:58:57
1988-05-28 06:58:57
1988-05-28 06:58:57 in target db.
drainer -V
# ./drainer -V Release Version: v3.0.6 Git Commit Hash: 948d8f32643321a038a79c91effcf55246d41e15 Build TS: 2019-12-04 09:30:14 Go Version: go1.13 Go OS/Arch: linux/amd64
fixed in #841
Bug Report
Please answer these questions before submitting your issue. Thanks!
road
Create table and insert some summer time records in source database.
1988-05-28 05:58:57
instead of1988-05-28 06:58:57
in target db.1988-05-28 06:58:57
in target db.drainer -V
in terminal to get drainer's version)