~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/range.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:
7
7
--enable_warnings
8
8
 
9
9
CREATE TABLE t1 (
10
 
  event_date date DEFAULT '0000-00-00' NOT NULL,
 
10
  event_date date NULL,
11
11
  type int DEFAULT '0' NOT NULL,
12
12
  event_id int DEFAULT '0' NOT NULL,
13
13
  PRIMARY KEY (event_date,type,event_id)
42
42
  YEAR int DEFAULT '0' NOT NULL,
43
43
  ISSUE int DEFAULT '0' NOT NULL,
44
44
  CLOSED int DEFAULT '0' NOT NULL,
45
 
  ISS_DATE date DEFAULT '0000-00-00' NOT NULL,
 
45
  ISS_DATE date,
46
46
  PRIMARY KEY (PAPER_ID,YEAR,ISSUE)
47
47
);
48
48
INSERT INTO t1 VALUES (3,1999,34,0,'1999-07-12'), (1,1999,111,0,'1999-03-23'),