~drizzle-developers/drizzle/elliott-release

« back to all changes in this revision

Viewing changes to tests/suite/time_type/r/basic.result

  • Committer: Patrick Crews
  • Date: 2011-02-01 20:33:06 UTC
  • mfrom: (1845.2.288 drizzle)
  • Revision ID: gleebix@gmail.com-20110201203306-mwq2rk0it81tlwxh
Merged Trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
INSERT INTO t1 VALUES (1234);
7
7
INSERT INTO t1 VALUES (123456.78);
8
8
INSERT INTO t1 VALUES (1234559.99);
9
 
ERROR HY000: Received an invalid value '1234559.99' for a UNIX timestamp.
 
9
ERROR HY000: Received an invalid TIME value '1234559.99'.
10
10
INSERT INTO t1 VALUES ("1");
11
11
INSERT INTO t1 VALUES ("1:23");
12
12
INSERT INTO t1 VALUES ("1:23:45");
13
13
INSERT INTO t1 VALUES ("10.22");
14
14
INSERT INTO t1 VALUES ("20 10:22:33");
15
 
ERROR HY000: Received an invalid value '20 10:22:33' for a UNIX timestamp.
 
15
ERROR HY000: Received an invalid TIME value '20 10:22:33'.
16
16
INSERT INTO t1 VALUES ("-10  1:22:33.45");
17
 
ERROR HY000: Received an invalid value '-10  1:22:33.45' for a UNIX timestamp.
 
17
ERROR HY000: Received an invalid TIME value '-10  1:22:33.45'.
18
18
INSERT INTO t1 VALUES ("1999-02-03 20:33:34");
19
19
insert t1 values (30);
20
20
insert t1 values (1230);
22
22
insert t1 values ("12:30");
23
23
insert t1 values ("12:30:35");
24
24
insert t1 values ("1 12:30:31.32");
25
 
ERROR HY000: Received an invalid value '1 12:30:31.32' for a UNIX timestamp.
26
 
select * from t1;
 
25
ERROR HY000: Received an invalid TIME value '1 12:30:31.32'.
 
26
select t from t1;
27
27
t
28
 
10:22:33
29
 
12:34:56
30
 
00:00:10
31
 
00:20:34
32
 
12:34:56
33
28
00:00:01
 
29
00:00:10
 
30
00:00:10
 
31
00:00:30
34
32
00:01:23
 
33
00:12:30
 
34
00:12:30
 
35
00:20:30
 
36
00:20:34
35
37
01:23:45
36
 
00:00:10
 
38
10:22:33
 
39
12:30:35
 
40
12:34:56
 
41
12:34:56
37
42
20:33:34
38
 
00:00:30
39
 
00:20:30
40
 
00:12:30
41
 
00:12:30
42
 
12:30:35
43
43
INSERT INTO t1 VALUES ("10.22.22");
44
 
ERROR HY000: Received an invalid value '10.22.22' for a UNIX timestamp.
 
44
ERROR HY000: Received an invalid TIME value '10.22.22'.
45
45
INSERT INTO t1 VALUES (1234567);
46
46
INSERT INTO t1 VALUES (123456789);
47
47
INSERT INTO t1 VALUES (123456789.10);
48
 
ERROR HY000: Received an invalid value '123456789.10' for a UNIX timestamp.
 
48
ERROR HY000: Received an invalid TIME value '123456789.10'.
49
49
INSERT INTO t1 VALUES ("10 22:22");
50
 
ERROR HY000: Received an invalid value '10 22:22' for a UNIX timestamp.
 
50
ERROR HY000: Received an invalid TIME value '10 22:22'.
51
51
INSERT INTO t1 VALUES ("12.45a");
52
 
ERROR HY000: Received an invalid value '12.45a' for a UNIX timestamp.
53
 
select * from t1;
 
52
ERROR HY000: Received an invalid TIME value '12.45a'.
 
53
select t from t1;
54
54
t
55
 
10:22:33
56
 
12:34:56
57
 
00:00:10
58
 
00:20:34
59
 
12:34:56
60
55
00:00:01
 
56
00:00:10
 
57
00:00:10
 
58
00:00:30
61
59
00:01:23
 
60
00:12:30
 
61
00:12:30
 
62
00:20:30
 
63
00:20:34
62
64
01:23:45
63
 
00:00:10
64
 
20:33:34
65
 
00:00:30
66
 
00:20:30
67
 
00:12:30
68
 
00:12:30
69
 
12:30:35
70
65
06:56:07
 
66
10:22:33
 
67
12:30:35
 
68
12:34:56
 
69
12:34:56
 
70
20:33:34
71
71
21:33:09
72
72
DROP TABLE t1;
73
73
CREATE TABLE t1 (t time);
106
106
1
107
107
CREATE TABLE t1 (f1 time);
108
108
INSERT INTO t1 VALUES ('24:00:00');
109
 
ERROR HY000: Received an invalid value '24:00:00' for a UNIX timestamp.
 
109
ERROR HY000: Received an invalid TIME value '24:00:00'.
110
110
SELECT CAST('24:00:00' as time) = (select f1 from t1);
111
111
CAST('24:00:00' as time) = (select f1 from t1)
112
112
NULL
113
113
DROP TABLE t1;
114
114
CREATE TABLE t1(f1 time, f2 time);
115
115
INSERT INTO t1 VALUES('20:00:00','150:00:00');
116
 
ERROR HY000: Received an invalid value '150:00:00' for a UNIX timestamp.
 
116
ERROR HY000: Received an invalid TIME value '150:00:00'.
117
117
select 1 from t1 where cast('100:00:00' as time) between f1 and f2;
118
118
1
119
119
DROP TABLE t1;