Re: Primary key constraint violation without error? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Primary key constraint violation without error?
Date
Msg-id 44C4C542.8080506@archonet.com
Whole thread Raw
In response to Primary key constraint violation without error?  (Mario Splivalo <mario.splivalo@mobart.hr>)
List pgsql-sql
Mario Splivalo wrote:
> Actually it's not violation, but I get no error message on violating
> it...
> 

> CREATE OR REPLACE FUNCTION punimessages()
>   RETURNS bool AS
> $BODY$
> 
> declare
>     userId users%ROWTYPE;
> 
> begin
> 
>     truncate table mes_del;^^^^^^^^^^^^^^^^^^^^^^^

This at the start of your inserts is why you're not seeing an error :-)

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Mario Splivalo
Date:
Subject: Primary key constraint violation without error?
Next
From: Michael Fuhr
Date:
Subject: Re: Primary key constraint violation without error?