Type casting bug in 8.1.[67]? - Mailing list pgsql-hackers

From Michael Paesold
Subject Type casting bug in 8.1.[67]?
Date
Msg-id 45C867DA.7060004@gmx.at
Whole thread Raw
Responses Re: Type casting bug in 8.1.[67]?  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Type casting bug in 8.1.[67]?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello all,

after upgrading from 8.1.5 to 8.1.7, I got errors in the server log when 
updating decimal values using string constants. I tried the same using 
psql (pasted the query from below) and it fails, too. Downgrading to 
8.1.5 resolved the issue.

ERROR:  attribute 4 has wrong type
DETAIL:  Table has type numeric, but query expects numeric.
STATEMENT:  UPDATE reminder SET reminder_charges='0' WHERE reminder_id=29362

reminder_charges is defined as:
reminder_charges       | numeric(5,2)                   | not null

I guess this is a bug.

Best Regards
Michael Paesold



pgsql-hackers by date:

Previous
From: "Marko Kreen"
Date:
Subject: Re: Pl/pgsql functions causing crashes in 8.2.2
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Type casting bug in 8.1.[67]?