File: rpl_hrtime_row.result

package info (click to toggle)
mariadb-10.0 10.0.32-0%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 476,064 kB
  • sloc: cpp: 1,400,131; ansic: 832,140; perl: 54,391; sh: 41,304; pascal: 32,365; yacc: 14,921; xml: 5,257; sql: 4,667; cs: 4,647; makefile: 4,555; ruby: 4,465; python: 2,292; lex: 1,427; java: 941; asm: 295; awk: 54; php: 22; sed: 16
file content (28 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include/master-slave.inc
[connection master]
set time_zone='+03:00';
set timestamp=unix_timestamp('2011-01-01 01:01:01') + 0.123456;
create table t1 (a timestamp(4), b varchar(100), c datetime(2));
insert t1 (b,c) values (now(6), now(6));
insert t1 values ('2010-10-10 10:10:10.101010','2010-10-10 10:10:10.101010','2010-10-10 10:10:10.101010');
set timestamp=unix_timestamp('2022-02-02 02:02:02') + 0.654321;
insert t1 (b,c) values (now(), now());
insert t1 (b,c) values (0,0);
insert t1 (a,b,c) values (0,0,now(6));
select * from t1;
a	b	c
2011-01-01 01:01:01.1234	2011-01-01 01:01:01.123456	2011-01-01 01:01:01.12
2010-10-10 10:10:10.1010	2010-10-10 10:10:10.101010	2010-10-10 10:10:10.10
2022-02-02 02:02:02.6543	2022-02-02 02:02:02	2022-02-02 02:02:02.00
2022-02-02 02:02:02.6543	0	0000-00-00 00:00:00.00
0000-00-00 00:00:00.0000	0	2022-02-02 02:02:02.65
set time_zone='+03:00';
select * from t1;
a	b	c
2011-01-01 01:01:01.1234	2011-01-01 01:01:01.123456	2011-01-01 01:01:01.12
2010-10-10 10:10:10.1010	2010-10-10 10:10:10.101010	2010-10-10 10:10:10.10
2022-02-02 02:02:02.6543	2022-02-02 02:02:02	2022-02-02 02:02:02.00
2022-02-02 02:02:02.6543	0	0000-00-00 00:00:00.00
0000-00-00 00:00:00.0000	0	2022-02-02 02:02:02.65
drop table t1;
include/rpl_end.inc