X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 761CDD1B1B0 for ; Wed, 7 Jul 2004 09:58:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69980-02 for ; Wed, 7 Jul 2004 12:58:24 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 18AD4D1B19F for ; Wed, 7 Jul 2004 09:58:19 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i67CwJi7018964 for ; Wed, 7 Jul 2004 12:58:19 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i67Chdco016311 for pgsql-sql@postgresql.org; Wed, 7 Jul 2004 12:43:39 GMT From: "Mischa Sandberg" X-Newsgroups: comp.databases.postgresql.sql References: <77ED2BF75D59D1439F90412CC5B109740E8A2E38@ie10-sahara.hiso.honeywell.com> <40EBD891.3050205@archonet.com> Subject: Re: Triggers - need help !!! Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <3eSGc.8923$eO.7106@edtnps89> Date: Wed, 07 Jul 2004 12:43:43 GMT To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.2 tagged_above=0.0 required=5.0 tests=PLING_PLING, PRIORITY_NO_NAME X-Spam-Level: ** X-Archive-Number: 200407/48 X-Sequence-Number: 18300 "Richard Huxton" wrote in message news:40EBD891.3050205@archonet.com... > Pradeepkumar, Pyatalo (IE10) wrote: > > IF UPDATE(CreateTime) THEN > > .... > > .... > > END IF; > > > > Is this syntax correct. > > No, and I don't recall seeing anything like it in the manuals. ... and it's always an excellent time to read them ... > IF OLD.CreateTime <> NEW.CreateTime THEN > ... ... being mindful of the case where CreateTime might be NULL ...