Re: libpq ERROR: overflow on numeric ABS(value) ...

From: markw(at)osdl(dot)org
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-interfaces(at)postgresql(dot)org, osdldbt-general(at)lists(dot)sourceforge(dot)net
Subject: Re: libpq ERROR: overflow on numeric ABS(value) ...
Date: 2003-08-07 22:23:23
Message-ID: 200308072223.h77MNQo24759@mail.osdl.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On 7 Aug, Tom Lane wrote:
> markw(at)osdl(dot)org writes:
>>>> DECLARE mycursor CURSOR FOR SELECT new_order(...)
>>>> FETCH ALL IN mycursor
>>>> ERROR: overflow on numeric ABS(value) >= 10^4 for field with precision 4 scale 0
>
>> Does it make sense that is throws the error on the FETCH instead of the
>> previous statement?
>
> Sure: the cursor won't actually be executed until you fetch from it.

Oh right, I should have remembered that...

Thanks,
Mark

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message markw 2003-08-07 23:53:03 Re: libpq ERROR: overflow on numeric ABS(value) ...
Previous Message Tom Lane 2003-08-07 22:14:48 Re: libpq ERROR: overflow on numeric ABS(value) ...