~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/update.result

  • Committer: Jay Pipes
  • Date: 2009-02-11 02:30:38 UTC
  • mto: (873.2.13 devel)
  • mto: This revision was merged to the branch mainline in revision 877.
  • Revision ID: jpipes@serialcoder-20090211023038-203wrshtyrufboko
Fixes the Field_date class to not allow any invalid input at
any time.  This, quite expectedly, broken about 20 test cases, so
this patches up those cases as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
22      3
303
303
23      3
304
304
drop table t1;
305
 
create table t1 (f1 date not null);
306
 
insert into t1 values('2000-01-01'),('0000-00-00');
 
305
create table t1 (f1 date NULL);
 
306
insert into t1 values('2000-01-01'),(NULL);
307
307
update t1 set f1='2002-02-02' where f1 is null;
308
308
select * from t1;
309
309
f1