Debian Codegraph @

mysql-test/suite/rpl/r/rpl_hrtime_row.result

raw
1 include/master-slave.inc
2 [connection master]
3 set time_zone='+03:00';
4 set timestamp=unix_timestamp('2011-01-01 01:01:01') + 0.123456;
5 create table t1 (a timestamp(4) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b varchar(100), c datetime(2));
6 insert t1 (b,c) values (now(6), now(6));
7 insert t1 values ('2010-10-10 10:10:10.101010','2010-10-10 10:10:10.101010','2010-10-10 10:10:10.101010');
8 set timestamp=unix_timestamp('2022-02-02 02:02:02') + 0.654321;
9 insert t1 (b,c) values (now(), now());
10 insert t1 (b,c) values (0,0);
11 insert t1 (a,b,c) values (0,0,now(6));
12 select * from t1;
13 a b c
14 2011-01-01 01:01:01.1234 2011-01-01 01:01:01.123456 2011-01-01 01:01:01.12
15 2010-10-10 10:10:10.1010 2010-10-10 10:10:10.101010 2010-10-10 10:10:10.10
16 2022-02-02 02:02:02.6543 2022-02-02 02:02:02 2022-02-02 02:02:02.00
17 2022-02-02 02:02:02.6543 0 0000-00-00 00:00:00.00
18 0000-00-00 00:00:00.0000 0 2022-02-02 02:02:02.65
19 connection slave;
20 connection slave;
21 set time_zone='+03:00';
22 select * from t1;
23 a b c
24 2011-01-01 01:01:01.1234 2011-01-01 01:01:01.123456 2011-01-01 01:01:01.12
25 2010-10-10 10:10:10.1010 2010-10-10 10:10:10.101010 2010-10-10 10:10:10.10
26 2022-02-02 02:02:02.6543 2022-02-02 02:02:02 2022-02-02 02:02:02.00
27 2022-02-02 02:02:02.6543 0 0000-00-00 00:00:00.00
28 0000-00-00 00:00:00.0000 0 2022-02-02 02:02:02.65
29 connection master;
30 drop table t1;
31 include/rpl_end.inc