pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
Cc: Tomasz Myrta <jasiek@klaster.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Triggers - need help !!!
Date: Wed, 07 Jul 2004 12:03:45 +0100
Message-ID: <40EBD891.3050205@archonet.com> (raw)
In-Reply-To: <77ED2BF75D59D1439F90412CC5B109740E8A2E38@ie10-sahara.hiso.honeywell.com>
References: <77ED2BF75D59D1439F90412CC5B109740E8A2E38@ie10-sahara.hiso.honeywell.com>

Pradeepkumar, Pyatalo (IE10) wrote:
> Thanks a lot for ur help.
>  In the trigger, I am checking if a field is updated or not. The syntax I
> use is 
> 
> IF UPDATE(CreateTime) THEN
> 	....
> 	....
> END IF;
> 
> Is this syntax correct.

No, and I don't recall seeing anything like it in the manuals.

IF OLD.CreateTime <> NEW.CreateTime THEN
  ...


-- 
   Richard Huxton
   Archonet Ltd



view thread (6+ messages)  latest in thread

Message-ID: <40EBD891.3050205@archonet.com>
Permalink:  ../40EBD891.3050205@archonet.com/
Also on:    postgresql.org/message-id/40EBD891.3050205@archonet.com

 · 

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: dev@archonet.com, Pradeepkumar.Pyatalo@honeywell.com, jasiek@klaster.net
  Subject: Re: Triggers - need help !!!
  In-Reply-To: <40EBD891.3050205@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