Type casting bug in 8.1.[67]?

From: Michael Paesold <mpaesold(at)gmx(dot)at>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Type casting bug in 8.1.[67]?
Date: 2007-02-06 11:34:50
Message-ID: 45C867DA.7060004@gmx.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-02-06 14:46:54 Re: Type casting bug in 8.1.[67]?
Previous Message Marko Kreen 2007-02-06 11:17:08 Re: Pl/pgsql functions causing crashes in 8.2.2