pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Thornton <thornton@cs.baylor.edu>
To: Gregory Wood <gregw@com-stock.com>
Cc: PostgreSQL-General <pgsql-general@postgresql.org>
Subject: Re: update returns 1, but no changes have been made
Date: Tue, 04 Dec 2001 07:29:23 -0600
Message-ID: <3C0CCFB3.5A9C614B@cs.baylor.edu> (raw)
References: <3C08A694.86E4153B@cs.baylor.edu>
	<004301c17e83$365a07d0$7889ffcc@comstock.com>
	<3C0CBA36.8B0207AF@cs.baylor.edu>
	<003101c17e95$d0f29430$7889ffcc@comstock.com>

Gregory Wood wrote:
> If you return old from an UPDATE, no changes are made (it takes the old
> values and puts them into the database rather than your new values). Of
> course you need to return old from a DELETE (new doesn't exist in a delete
> trigger)...

That was it -- thanks for your help Gregory.


 JT
________________________________________
James Thornton, http://jamesthornton.com



view thread (5+ messages)  latest in thread

Message-ID: <3C0CCFB3.5A9C614B@cs.baylor.edu>
Permalink:  ../3C0CCFB3.5A9C614B@cs.baylor.edu/
Also on:    postgresql.org/message-id/3C0CCFB3.5A9C614B@cs.baylor.edu

 · 

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: thornton@cs.baylor.edu, gregw@com-stock.com, pgsql-general@postgresql.org
  Subject: Re: update returns 1, but no changes have been made
  In-Reply-To: <3C0CCFB3.5A9C614B@cs.baylor.edu>

* 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