~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_date_add.test

  • Committer: Monty Taylor
  • Date: 2009-04-12 08:14:18 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090412081418-dc6gh3g3awkrhwov
Merged compress, uncompress and uncompressed_length into one plugin lib. Yay new plugin registration!

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
drop table if exists t1;
7
7
--enable_warnings
8
8
 
9
 
CREATE TEMPORARY TABLE t1 (
 
9
CREATE TABLE t1 (
10
10
  visitor_id int DEFAULT '0' NOT NULL,
11
11
  group_id int DEFAULT '0' NOT NULL,
12
12
  hits int DEFAULT '0' NOT NULL,
55
55
insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
56
56
# These will all work now, and we'll end up with some NULL entries in the
57
57
# table and some warnings.
58
 
--error ER_DATETIME_FUNCTION_OVERFLOW
 
58
--error 1441
59
59
insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
60
 
--error ER_DATETIME_FUNCTION_OVERFLOW
 
60
--error 1441
61
61
insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
62
62
insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
63
63
insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));