Numeric Bug?

From: "Zot O'Connor" <zot(at)zotconsulting(dot)com>
To: postgres sql <pgsql-sql(at)hub(dot)org>
Subject: Numeric Bug?
Date: 1999-10-29 23:23:18
Message-ID: 381A2C66.1809CE9F@zotconsulting.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

It appears as though 0.0 has a bigger value?

I am running redhar 6.5.2 rpms (RH6).

DROP
create table example(
other decimal(4,4)
);
CREATE

insert into example (other) values(3.9);
ERROR: overflow on numeric ABS(value) >= 10^0 for field with precision
4 scale 4
insert into example (other) values(0.0);
ERROR: overflow on numeric ABS(value) >= 10^0 for field with precision
4 scale 4
insert into example (other) values(0.1);
INSERT 49645 1
insert into example (other) values(0.1234);
INSERT 49710 1

I can insert 0.1 but not 0.0?

This cannot be right! This works for Solid and mysql!

Is there a workaround?
--
Zot O'Connor

www.ZotConsulting.com
www.WhiteKnightHackers.com

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-10-29 23:37:49 Re: [SQL] trivial problem
Previous Message Zot O'Connor 1999-10-29 22:26:04 Decimal precsion?