Re: Editor de php
El mié, 16-05-2007 a las 18:23 -0400, 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 --user=root -p
> Enter password:
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 12
> Server version: 5.0.32-Debian_7etch1-log Debian etch distribution
>
> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>
> mysql> CREATE DATABASE test;
> Query OK, 1 row affected (0.00 sec)
>
> mysql> USE test;
> Database changed
> mysql> CREATE TABLE dates (test_date DATE);
> Query OK, 0 rows affected (0.03 sec)
>
> mysql> SELECT * FROM dates;
> Empty set (0.00 sec)
>
> 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.
>
> Hay otros, pero ese es el de que me recuerdo ahora.
http://sql-info.de/mysql/gotchas.html
No está muy actualizada, pero hay unas cuantas. También están las de
postgres, pero no hay color ;)
Reply to: