From: Richard Huxton <dev@archonet.com>
To: David Garamond <davidgaramond@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: autoupdating mtime column
Date: Fri, 04 Aug 2006 13:49:06 +0100
Message-ID: <44D34242.6000901@archonet.com> (raw)
In-Reply-To: <7c33d060608040516n799af906sf74e1c645a47caff@mail.gmail.com>
References: <7c33d060608040516n799af906sf74e1c645a47caff@mail.gmail.com>
David Garamond wrote:
> Dear all,
>
> Please see SQL below. I'm already satisfied with everything except I
> wish in
> #4, mtime got automatically updated to NOW() if not explicitly SET in
> UPDATE
> statement. Is there a way to make the mtime column behave more like I
> wanted? Thanks in advance.
Just check for OLD.mtime = NEW.mtime, or am I missing something here?
--
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, davidgaramond@gmail.com
Subject: Re: autoupdating mtime column
In-Reply-To: <44D34242.6000901@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