Re: cant delete row

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
Cc: "Tamsin" <tg_mail(at)bryncadfan(dot)co(dot)uk>, "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: cant delete row
Date: 2001-04-05 16:06:14
Message-ID: 17217.986486774@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> writes:
> Tom Lane wrote:
>>>> "Tamsin" <tg_mail(at)bryncadfan(dot)co(dot)uk> writes:
> test=# delete from order_head where order_head_id = 1581;
> ERROR: overflow on numeric ABS(value) >= 10^9 for field with precision 8
> scale 2
>>>>
>>>> This is extremely bizarre. A DELETE does not care what data is in the
>>>> row. Do you perhaps have rules or triggers on this table that you
>>>> haven't told us about?

> But surely the WHERE clause on this DELETE will care? I don't know
> how the internal details are arranged, but it sounds as though it is
> the comparison that is blowing up.

No, because the WHERE's comparison is on an integer field. Besides,
that message comes out when trying to store a numeric value into a
column, not when fetching or doing arithmetic on one.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 2001-04-05 16:29:13 Re: Where do I get the v7.1 beta?
Previous Message Richard Huxton 2001-04-05 16:01:32 Re: Data transfer format between UNIX server and Windows client?