Re: Fwd: int type problem in 7.3

From: "Mario Weilguni" <mario(dot)weilguni(at)icomedias(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: int type problem in 7.3
Date: 2002-10-02 13:45:51
Message-ID: 4D618F6493CE064A844A5D496733D6670390FE@freedom.icomedias.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>> But oracle accepts this one:
>> SQL> select * from re_eintraege where id='';
>> no rows selected
>> because oracle treats the empty string as NULL
>
>Oracle does that for string data, but it doesn't do it for numerics
>does it? In any case, that behavior is surely non-compliant with
>the SQL spec.

No, oracle accepts this and works correctly with number() datatype.
However I did not know that in postgres '' was treated as '0'.

Regards,
Mario Weilguni

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2002-10-02 13:52:17 Re: [GENERAL] New PostgreSQL Website : advocacy.postgresql.org
Previous Message Tom Lane 2002-10-02 13:29:49 Re: Purpose of rscale/dscale in NUMERIC?