~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/type_datetime.test

  • Committer: Brian Aker
  • Date: 2011-01-26 21:05:29 UTC
  • mto: (2122.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2123.
  • Revision ID: brian@tangent.org-20110126210529-2y7gt9xg9fz1b29c
Fix error message on date.

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
191
191
insert into t1 set dt='2007-03-23 13:49:38',da=dt;
192
192
# Test error handling
193
 
--error ER_INVALID_DATETIME_VALUE # Bad date
 
193
--error ER_INVALID_DATE_VALUE # Bad date
194
194
insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
195
195
select * from t1;
196
196
drop table t1;
369
369
insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
370
370
insert into t1 set dt='2007-03-23 13:49:38',da=dt;
371
371
# Test error handling
372
 
--error ER_INVALID_DATETIME_VALUE # Bad date
 
372
--error ER_INVALID_DATE_VALUE # Bad date
373
373
insert into t1 values ('2007-03-32','2007-03-23 13:49:38');
374
374
select * from t1;
375
375
drop table t1;