Re: Prestige users - Mailing list pgsql-advocacy

From Jonathan Gardner
Subject Re: Prestige users
Date
Msg-id 200405051038.40089.jgardner@jonathangardner.net
Whole thread Raw
In response to Re: Prestige users  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-advocacy
On Wednesday 05 May 2004 09:48 am, scott.marlowe wrote:
> Just try this simple test in MySQL and see if the boss still thinks it's
> suitable for accounting:
>
> mysql> create table test (i1 int, n1 numeric(8,2));
> Query OK, 0 rows affected (0.00 sec)
>
> mysql> insert into test values (10000000000000,100000000000.345678);
> Query OK, 1 row affected (0.00 sec)
>
> mysql> select * from test;
> +------------+------------+
>
> | i1         | n1         |
>
> +------------+------------+
>
> | 2147483647 | 9999999.99 |
>
> +------------+------------+
> 1 row in set (0.00 sec)
>
>
> Wow, inspires you with confidence, huh?
>

Just to describe what SHOULD happen in a real database:
jonagard=#  create table test (i1 int, n1 numeric(8,2));
CREATE TABLE
jonagard=# insert into test values (10000000000000,100000000000.345678);
ERROR:  int8 conversion to int4 is out of range

--
Jonathan Gardner
jgardner@jonathangardner.net

pgsql-advocacy by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Prestige users
Next
From: "Roderick A. Anderson"
Date:
Subject: Re: Prestige users