Re: postgresql vs mysql - Mailing list pgsql-general

From Adam Rich
Subject Re: postgresql vs mysql
Date
Msg-id 066101c7557d$7e80ed40$6400a8c0@dualcore
Whole thread Raw
In response to Re: postgresql vs mysql  (Ron Johnson <ron.l.johnson@cox.net>)
Responses Re: postgresql vs mysql  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: postgresql vs mysql  (Ron Johnson <ron.l.johnson@cox.net>)
Re: postgresql vs mysql  (Jim Nasby <decibel@decibel.org>)
List pgsql-general
I'm not apologizing for their past mistakes.. But the issue
you cite is no longer true:

"As of 5.0.2, the server requires that month and day values
be legal, and not merely in the range 1 to 12 and 1 to 31,
respectively."


mysql> use test
Database changed
mysql> create table test ( td DATE );
Query OK, 0 rows affected (0.01 sec)
mysql> insert into test values ('35-Feb-2007');
ERROR 1292 (22007): Incorrect date value: '35-Feb-2007' for column 'td'
at row 1
mysql> select version();
+-----------------+
| version()       |
+-----------------+
| 5.0.27-standard |
+-----------------+
1 row in set (0.00 sec)



-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Ron Johnson
Sent: Tuesday, February 20, 2007 11:35 PM
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] postgresql vs mysql


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/20/07 15:25, gustavo halperin wrote:
>  Hello
>
> I  have a friend that ask me why postgresql is better than mysql.
> I personally prefer posgresql, but she need to give in her work 3 or 4
> strong reasons for that. I mean not to much technical reasons. Can you
> give help me please ?

The only reason I'd need is that MySQL (even InnoDB) lets you
accidentally insert intrinsically bad data.  According to the
official v5 docs, it's the app programmer's fault if s/he tries to
insert 35-Feb-2007 into the database.  MySQL will purposefully
convert it to '0000-00-00'.

http://dev.mysql.com/doc/refman/5.0/en/constraint-invalid-data.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF29nmS9HxQb37XmcRAsD9AJ4gGKaCz5gTQD879DBvsay6nHU8+wCfSj3J
98mWmmEqtFKGaDX4ZvU87J4=
=EPxL
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: postgresql vs mysql
Next
From: Tom Lane
Date:
Subject: Re: postgresql vs mysql