Re: numeric_to_number() function skipping some digits
| От | daveg |
|---|---|
| Тема | Re: numeric_to_number() function skipping some digits |
| Дата | |
| Msg-id | 20090923081311.GE27248@sonic.net обсуждение исходный текст |
| Ответ на | Re: numeric_to_number() function skipping some digits (Jeevan Chalke <jeevan.chalke@enterprisedb.com>) |
| Ответы |
Re: numeric_to_number() function skipping some
digits
|
| Список | pgsql-hackers |
On Tue, Sep 22, 2009 at 10:27:19AM +0530, Jeevan Chalke wrote:
>
> It seems that Oracle reads formatting string from right-to-left. Here are
> few results:
> ('number','format') ==> Oracle PG
> --------------------------------------------
> ('34,50','999,99') ==> 3450 340
> ('34,50','99,99') ==> 3450 3450
> ('34,50','99,999') ==> Invalid Number 3450
> ('34,50','999,999') ==> Invalid Number 340
It seems worse to to give a wrong answer silently then to throw an error.
What we do now seems sort of MySqlish.
-dg
--
David Gould daveg@sonic.net 510 536 1443 510 282 0869
If simplicity worked, the world would be overrun with insects.
В списке pgsql-hackers по дате отправления: