From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andrew Snow <andrew(at)modulus(dot)org>, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Re: Unnexpected results using to_number() |
Date: | 2000-07-10 06:42:31 |
Message-ID: | Pine.LNX.3.96.1000710083723.24431A-100000@ara.zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Sun, 9 Jul 2000, Tom Lane wrote:
> "Andrew Snow" <andrew(at)modulus(dot)org> writes:
> > # SELECT to_number('12,454.8-', '');
> > pqReadData() -- backend closed the channel unexpectedly.
>
> In current sources I get a NULL result, which seems to be what the
> code author intended originally. However this seems a little bit
my original code not return NULL, but return numeric_in(NULL, 0, 0) for
this situation.
> inconsistent --- shouldn't it raise a bad-format error instead?
> For example,
>
> regression=# SELECT to_number('12,454.8-', ' ');
> ERROR: Bad numeric input format ' '
Thanks for fix Tom.
Karel
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-07-10 06:53:15 | Re: [HACKERS] Re: Unnexpected results using to_number() |
Previous Message | Philip Warner | 2000-07-10 01:43:40 | Re: [HACKERS] Re: [SQL] MAX() of 0 records. |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-07-10 06:53:15 | Re: [HACKERS] Re: Unnexpected results using to_number() |
Previous Message | Graeme Merrall | 2000-07-10 06:37:31 | Re: Slashdot discussion |