pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stef <svb@ucs.co.za>
To: pgsql-sql@postgresql.org
Subject: Re: Exceptions when 0 rows affected.
Date: Thu, 13 May 2004 16:49:36 +0200
Message-ID: <20040513164936.6fad8cc5@svb.ucs.co.za> (raw)


Andrei Bintintan mentioned :
=> Your problem depends on what interface/programming language you're using.

Yep, I tried to do it using rules or triggers, but I can't get it to do what I want 
exactly, and it's not a good idea to put any rules or triggers on my database.

I'm sticking to psql though, and managed to create the query with a nested
nullif and coalesce to make my query fail if there are 0 rows matching for
an update or delete.

Cheers
Stef



view thread (3+ messages)

Message-ID: <20040513164936.6fad8cc5@svb.ucs.co.za>
Permalink:  ../20040513164936.6fad8cc5@svb.ucs.co.za/
Also on:    postgresql.org/message-id/20040513164936.6fad8cc5@svb.ucs.co.za

 · 

reply

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: svb@ucs.co.za
  Subject: Re: Exceptions when 0 rows affected.
  In-Reply-To: <20040513164936.6fad8cc5@svb.ucs.co.za>

* 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