~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/myisam.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:
318
318
CREATE TABLE `t1` (
319
319
  `post_id` int NOT NULL auto_increment,
320
320
  `topic_id` int NOT NULL default '0',
321
 
  `post_time` datetime NOT NULL default '0000-00-00 00:00:00',
 
321
  `post_time` datetime,
322
322
  `post_text` text NOT NULL,
323
323
  `icon_url` varchar(10) NOT NULL default '',
324
324
  `sign` int NOT NULL default '0',