Bug #550 | DATE value YYYY-00-00 not allowed | ||
---|---|---|---|
Submitted: | 30 May 2003 21:43 | Modified: | 31 May 2003 11:08 |
Reporter: | Scott Anderson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 3.23.56 | OS: | MacOS (Mac OS X 10.2.6) |
Assigned to: | CPU Architecture: | Any |
[30 May 2003 21:43]
Scott Anderson
[31 May 2003 4:19]
Alexander Keremidarski
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. I couldn't repeat it. mysql> create table d (d date); Query OK, 0 rows affected (0.00 sec) mysql> insert into d values (curdate()); Query OK, 1 row affected (0.00 sec) mysql> select * from d; +------------+ | d | +------------+ | 2003-05-31 | +------------+ 1 row in set (0.00 sec) mysql> update d set d = '2004-07-00'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> select * from d; +------------+ | d | +------------+ | 2004-07-00 | +------------+ 1 row in set (0.00 sec) mysql> update d set d = '2005-00-00'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> select * from d; +------------+ | d | +------------+ | 2005-00-00 | +------------+ 1 row in set (0.00 sec) I tested it with both MyISAM and InnoDB tables as and also with 3.23, 4.0 and 4.1
[31 May 2003 9:13]
Scott Anderson
Thanks for looking into this. I followed your steps exactly. My results were: 2004-07-01 (instead of 2004-07-00) and 2005-01-01 (instead of 2005-00-00). "I tested it with both MyISAM and InnoDB tables as and also with 3.23, 4.0 and 4.1" I was using MyISAM tables. Did you try this on Mac OS X? One thought. I used a precompiled version; is there possibly an option to enforce dates that might have been turned on by the person who compiled it? I didn't see one in the documentation, but maybe it's hidden.
[31 May 2003 9:38]
MySQL Verification Team
Seems like we shall have to test it on OS X. If we can't repeat it, then it has been fixed meanwhile in our source tree.
[31 May 2003 11:08]
MySQL Verification Team
We were not able to repeat it on OS X either. It is either some specific setting in your setup or a bug that was meanwhile fixed.