~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/null.test

  • Committer: Jay Pipes
  • Date: 2009-02-11 04:11:47 UTC
  • mto: (873.2.13 devel)
  • mto: This revision was merged to the branch mainline in revision 878.
  • Revision ID: jpipes@serialcoder-20090211041147-f3xizbt3xo2r8n33
Fixed Field_datetime to never accept any bad datetimes as a string.  This broke
dozen or so test cases of course, which are riddled with 0000-00-00 00:00:00 crap.

Also, probably against my better judgment, I added the ability to match a string
in the following datetime expression:

YY-MM-DD HH:mm:SS

I say against my better judgment because it looks similar to the ISO 8601:1988 standard
format specifier, but is NOT since ISO always expects a 4-digit year.  But, to be compatible
with MySQL...

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
#
62
62
# Test inserting and updating with NULL
63
63
#
64
 
CREATE TABLE t1 (a varchar(16) NOT NULL default '', b int NOT NULL default 0, c datetime NOT NULL default '0000-00-00 00:00:00', d int NOT NULL default 0);
 
64
CREATE TABLE t1 (a varchar(16) NOT NULL default '', b int NOT NULL default 0, c datetime NOT NULL default '2009-02-10 00:00:00', d int NOT NULL default 0);
65
65
 
66
66
# Test INSERT with NULL
67
67