On Wed, May 16, 2007 at 06:23:59PM -0400, Roberto C. Sánchez wrote: > On Wed, May 16, 2007 at 11:49:23PM +0200, Iñaki Baz Castillo wrote: > > El Miércoles, 16 de Mayo de 2007, Roberto C. Sánchez escribió: > > > Con respeto a MySQL, a mi no me gusta. Cualquier "base de datos" que > > > acepta a Febrero 31 como una fecha *valida* tiene problemas. > > > > ¿¿Todavía tiene ese bochornoso fallo?? > > > mysql> INSERT INTO dates VALUES('2007-02-31'); > Query OK, 1 row affected, 1 warning (0.00 sec) > > mysql> SELECT * FROM dates; > +------------+ > | test_date | > +------------+ > | 0000-00-00 | > +------------+ > 1 row in set (0.00 sec) > > mysql> > > > Si. Muy falso. De http://dev.mysql.com/doc/refman/5.0/en/date-and-time-types.html ... You can get MySQL to accept certain dates, such as '1999-11-31', by using the ALLOW_INVALID_DATES SQL mode. (Before 5.0.2, this mode was the default behavior for MySQL.) ... Es decir, lo consideran 'feature'. -- Rodrigo Gallardo GPG-Fingerprint: 7C81 E60C 442E 8FBC D975 2F49 0199 8318 ADC9 BC28
Attachment:
signature.asc
Description: Digital signature