| От | Tom Lane |
|---|---|
| Тема | Re: libpq ERROR: overflow on numeric ABS(value) ... |
| Дата | |
| Msg-id | 8867.1060292987@sss.pgh.pa.us обсуждение |
| Ответ на | libpq ERROR: overflow on numeric ABS(value) ... (markw@osdl.org) |
| Ответы |
Re: libpq ERROR: overflow on numeric ABS(value) ...
|
| Список | pgsql-interfaces |
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
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера