From: Richard Huxton <dev@archonet.com>
To: mario.splivalo@mobart.hr
Cc: pgsql-sql@postgresql.org
Subject: Re: Primary key constraint violation without error?
Date: Mon, 24 Jul 2006 14:04:02 +0100
Message-ID: <44C4C542.8080506@archonet.com> (raw)
In-Reply-To: <1153743159.28381.15.camel@localhost.localdomain>
References: <1153743159.28381.15.camel@localhost.localdomain>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, mario.splivalo@mobart.hr
Subject: Re: Primary key constraint violation without error?
In-Reply-To: <44C4C542.8080506@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox