~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/update.test

  • 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:
235
235
#
236
236
# Bug#14186 select datefield is null not updated
237
237
#
238
 
create table t1 (f1 date not null);
239
 
insert into t1 values('2000-01-01'),('0000-00-00');
 
238
create table t1 (f1 date NULL);
 
239
insert into t1 values('2000-01-01'),(NULL);
240
240
update t1 set f1='2002-02-02' where f1 is null;
241
241
select * from t1;
242
242
drop table t1;