~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/parser.test

  • Committer: Jay Pipes
  • Date: 2009-02-21 16:00:06 UTC
  • mto: (907.1.1 trunk-with-temporal)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090221160006-vnk3wt4qbcz62eru
Removes the TIME column type and related time functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
create table CURDATE (a int);
35
35
 
36
36
--error ER_PARSE_ERROR
37
 
create table CURTIME(a int);
38
 
--error ER_PARSE_ERROR
39
 
create table CURTIME (a int);
40
 
 
41
 
--error ER_PARSE_ERROR
42
37
create table DATE_ADD(a int);
43
38
--error ER_PARSE_ERROR
44
39
create table DATE_ADD (a int);
186
181
create table CURDATE (a int);
187
182
 
188
183
--error ER_PARSE_ERROR
189
 
create table CURTIME(a int);
190
 
--error ER_PARSE_ERROR
191
 
create table CURTIME (a int);
192
 
 
193
 
--error ER_PARSE_ERROR
194
184
create table DATE_ADD(a int);
195
185
--error ER_PARSE_ERROR
196
186
create table DATE_ADD (a int);
370
360
select makedate(1, 2, 3);
371
361
 
372
362
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
373
 
select maketime();
374
 
select maketime(1);
375
 
select maketime(1, 2);
376
 
select maketime(1, 2, 3, 4);
377
 
 
378
363
select atan();
379
364
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
380
365
select atan2(1, 2, 3);
577
558
DROP TABLE IF EXISTS t1;
578
559
--enable_warnings
579
560
 
580
 
SELECT STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE;
581
 
SELECT STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL (INTERVAL(1,2,3) + 1) MINUTE;
582
561
SELECT "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
583
562
SELECT 1 + INTERVAL(1,0,1,2) + 1;
584
563
SELECT INTERVAL(1,0,1,2) + 1;