Re: BUG #4741: Domain constraint violation with trigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brice Maron & Duchesne P-A" <bmaron(at)naturalsciences(dot)be>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4741: Domain constraint violation with trigger
Date: 2009-04-02 01:17:42
Message-ID: 3907.1238635062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Brice Maron & Duchesne P-A" <bmaron(at)naturalsciences(dot)be> writes:
> we've got a problem with a NOT Null constraint on a domain in a trigger.
> When, in a trigger, we put a null into the not nullable domain, postgresql
> doesn't throw an error.

Thanks, fixed. (Just remove the if (!isnull) test in exec_simple_cast_value())

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ricardo Fuentes 2009-04-02 21:05:03 Hello, i want to subscribe...
Previous Message Jaime Casanova 2009-04-01 21:38:36 Fwd: [BUGS] consulta de phpESP postgres error