| From: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] NUMERIC type conversions leave much to be desired |
| Date: | 1999-05-08 02:47:58 |
| Message-ID: | 3733A5DE.DFD48372@alumni.caltech.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> With fairly current sources:
<snip>
> ERROR: overflow on numeric ABS(value) >= 10^1
> for field with precision 31491 scale 52068
postgres=> create table dnum (f1 numeric(10,2));
postgres=> insert into dnum values ('12.34');
postgres=> insert into dnum values ('12.34'::numeric);
postgres=> insert into dnum values (12.34);
postgres=> insert into dnum values ('12.345');
postgres=> select * from dnum;
f1
-----
12.34
12.34
12.34
12.35
(4 rows)
fwiw, I've seen the same internal problems, and managed to fix them
with a full clean and reinstall. I'm probably a week old on my tree
vintage...
- Thomas
--
Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hiroshi Inoue | 1999-05-08 08:57:23 | MVCC vacuum error |
| Previous Message | Bruce Momjian | 1999-05-07 23:03:35 | Re: [HACKERS] Re: Nasty resource-leak problem in sort code] |