Open GoogleCodeExporter opened 9 years ago
Giuseppe, I can't reproduce this. Either (a) it has been fixed by time handling
changes in 2.2.0 or (b) it's because of different MySQL versions.
Firstly, MySQL 5.5 doesn't provide parts of second:
*** START OF snippet ***
mysql [localhost] {msandbox} (demo) > insert into timetest values (1,
'00:00:00.01', now());
Query OK, 1 row affected (0.05 sec)
mysql [localhost] {msandbox} (demo) > select * from timetest;
+----+----------+---------------------+
| id | ti | ts |
+----+----------+---------------------+
| 1 | 00:00:00 | 2013-10-15 09:19:30 |
+----+----------+---------------------+
1 row in set (0.00 sec)
mysql [localhost] {msandbox} (demo) > insert into timetest values (2,
'00:00:01', now());
Query OK, 1 row affected (0.01 sec)
mysql [localhost] {msandbox} (demo) > select * from timetest;
+----+----------+---------------------+
| id | ti | ts |
+----+----------+---------------------+
| 1 | 00:00:00 | 2013-10-15 09:19:30 |
| 2 | 00:00:01 | 2013-10-15 09:20:27 |
+----+----------+---------------------+
2 rows in set (0.00 sec)
*** END OF snippet ***
Secondly, THL displays TIME type correctly:
*** START OF snippet ***
SEQ# = 2 / FRAG# = 0 (last frag)
- TIME = 2013-10-15 11:19:30.0
...
- SQL(0) =
- ACTION = INSERT
- SCHEMA = demo
- TABLE = timetest
- ROW# = 0
- COL(1: id) = 1
- COL(2: ti) = 00:00:00
- COL(3: ts) = 2013-10-15 11:19:30.0
SEQ# = 3 / FRAG# = 0 (last frag)
- TIME = 2013-10-15 11:20:27.0
...
- SQL(0) =
- ACTION = INSERT
- SCHEMA = demo
- TABLE = timetest
- ROW# = 0
- COL(1: id) = 2
- COL(2: ti) = 00:00:01
- COL(3: ts) = 2013-10-15 11:20:27.0
*** END OF snippet ***
Original comment by linas.vi...@continuent.com
on 15 Oct 2013 at 9:26
The bug occurs with MySQL 5.6
set binlog_format=row;
create table t1 (i int not null, t time(6));
insert into t1 values (2, '00:00:00.02');
SEQ# = 3 / FRAG# = 0 (last frag)
- TIME = 2013-12-06 12:09:37.0
- EPOCH# = 0
- EVENTID = mysql-bin.000002:0000000000000983;0
- SOURCEID = 127.0.0.1
- METADATA = [mysql_server_id=101;dbms_type=mysql;service=tsandbox;shard=test]
- TYPE = com.continuent.tungsten.replicator.event.ReplDBMSEvent
- OPTIONS = [foreign_key_checks = 1, unique_checks = 1]
- SQL(0) =
- ACTION = INSERT
- SCHEMA = test
- TABLE = t1
- ROW# = 0
- COL(1: ) = 2
- COL(2: ) = 1970-01-01 00:00:00.02
Original comment by g.maxia
on 6 Dec 2013 at 11:11
Original comment by g.maxia
on 6 Dec 2013 at 11:11
Original comment by g.maxia
on 6 Dec 2013 at 11:12
Original comment by linas.vi...@continuent.com
on 2 May 2014 at 9:14
These are not at the focus of 3.0.0.
Original comment by linas.vi...@continuent.com
on 26 May 2014 at 2:21
Will not use third version digit for normal releases anymore. It will only be
increment for maintenance ones.
Original comment by linas.vi...@continuent.com
on 26 May 2014 at 5:01
This issue affects the MongoDB applier. If we replicate a timestamp "10:10:30"
it will be applied as "1970-01-01 10:10:30."
Original comment by g.maxia
on 30 Jun 2014 at 4:02
Original comment by linas.vi...@continuent.com
on 19 Jan 2015 at 2:18
Original issue reported on code.google.com by
g.maxia
on 26 Aug 2013 at 4:08