From: Tom Lane <tgl@sss.pgh.pa.us>
To: markw@osdl.org
Cc: pgsql-interfaces@postgresql.org
Cc: osdldbt-general@lists.sourceforge.net
Subject: Re: libpq ERROR: overflow on numeric ABS(value) ...
Date: Thu, 07 Aug 2003 17:49:47 -0400
Message-ID: <8867.1060292987@sss.pgh.pa.us> (raw)
In-Reply-To: <200308072125.h77LP7o07576@mail.osdl.org>
References: <200308072125.h77LP7o07576@mail.osdl.org>
markw@osdl.org writes:
> Hello, I need some help understanding an error message. I've got a
> program using libpq where I do a:
> DECLARE mycursor CURSOR FOR SELECT new_order(...)
> FETCH ALL IN mycursor
> and I get the resulting error from the FETCH more than half the time:
> ERROR: overflow on numeric ABS(value) >= 10^4 for field with precision 4 scale 0
> My new_order function is a C library that returns an integer that
> returns a number from 0 to 30.
I'm betting on a bug in your C code. But we can't guess what without
more details.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, markw@osdl.org, osdldbt-general@lists.sourceforge.net
Subject: Re: libpq ERROR: overflow on numeric ABS(value) ...
In-Reply-To: <8867.1060292987@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox