Re: Need concrete "Why Postgres not MySQL" bullet list - Mailing list pgsql-advocacy

From Christopher Kings-Lynne
Subject Re: Need concrete "Why Postgres not MySQL" bullet list
Date
Msg-id 00d201c36785$8661bf10$2800a8c0@mars
Whole thread Raw
In response to Need concrete "Why Postgres not MySQL" bullet list  (Josh Berkus <josh@agliodbs.com>)
List pgsql-advocacy
> Oh dear, this excludes my usual one-item "things to think about
> when considering what database to use":
>
> * PROPER USAGE OF NULL
>
> mysql> select * from ai_test where id is null;
> +----+-------+
> | id | txt   |
> +----+-------+
> |  1 | hello |
> +----+-------+
> 1 row in set (0.00 sec)
>
> ;-). I digress. Off the top of my head, in no particular order:

You're not trying hard enough:

mysql> create table test3 (a date);
Query OK, 0 rows affected (0.00 sec)

mysql> insert into test3 values (-1);
Query OK, 1 row affected (0.01 sec)

mysql> insert into test3 values ('1996-02-31');
Query OK, 1 row affected (0.00 sec)

mysql> insert into test3 values ('1996-67-31');
Query OK, 1 row affected (0.00 sec)

mysql> select * from test3;
+------------+
| a          |
+------------+
| 0000-00-00 |
| 1996-02-31 |
| 0000-00-00 |
+------------+
3 rows in set (0.00 sec)

I find that even funnier...

Chris


pgsql-advocacy by date:

Previous
From: Anastasios Hatzis
Date:
Subject: Re: Need concrete "Why Postgres not MySQL" bullet
Next
From: "Shridhar Daithankar"
Date:
Subject: Re: Need concrete "Why Postgres not MySQL" bullet list