mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / r / timezone.result
blob1223fff36c689098cfcc1cd67a7a523fa9d7ce86
1 DROP TABLE IF EXISTS t1;
2 show variables like "system_time_zone";
3 Variable_name   Value
4 system_time_zone        MET
5 select @a:=FROM_UNIXTIME(1);
6 @a:=FROM_UNIXTIME(1)
7 1970-01-01 01:00:01
8 select unix_timestamp(@a);
9 unix_timestamp(@a)
11 CREATE TABLE t1 (ts int);
12 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 01:00'));
13 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 02:00'));
14 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 03:00'));
15 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 02:00'));
16 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 01:00'));
17 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2002-10-27 02:00'));
18 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 02:59:59'));
19 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 03:00:00'));
20 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 03:59:59'));
21 INSERT INTO t1 (ts) VALUES (Unix_timestamp('2003-03-30 04:00:01'));
22 SELECT ts,from_unixtime(ts) FROM t1;
23 ts      from_unixtime(ts)
24 1035673200      2002-10-27 01:00:00
25 1035680400      2002-10-27 02:00:00
26 1035684000      2002-10-27 03:00:00
27 1035680400      2002-10-27 02:00:00
28 1035673200      2002-10-27 01:00:00
29 1035680400      2002-10-27 02:00:00
30 1048986000      2003-03-30 03:00:00
31 1048986000      2003-03-30 03:00:00
32 1048989599      2003-03-30 03:59:59
33 1048989601      2003-03-30 04:00:01
34 DROP TABLE t1;
35 CREATE TABLE t1 (ts timestamp);
36 INSERT INTO t1 (ts) VALUES ('2003-03-30 01:59:59'),
37 ('2003-03-30 02:59:59'),
38 ('2003-03-30 03:00:00');
39 Warnings:
40 Warning 1299    Invalid TIMESTAMP value in column 'ts' at row 2
41 DROP TABLE t1;
42 select unix_timestamp('1970-01-01 01:00:00'), 
43 unix_timestamp('1970-01-01 01:00:01'),
44 unix_timestamp('2038-01-19 04:14:07'),
45 unix_timestamp('2038-01-19 04:14:08');
46 unix_timestamp('1970-01-01 01:00:00')   unix_timestamp('1970-01-01 01:00:01')   unix_timestamp('2038-01-19 04:14:07')   unix_timestamp('2038-01-19 04:14:08')
47 0       1       2147483647      0