Re: trigger and plpgsq help needed

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: "SUNDAY A(dot) OLUTAYO" <olutayo(at)sadeeb(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: trigger and plpgsq help needed
Date: 2012-09-26 19:26:28
Message-ID: 506356E4.5040008@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/26/2012 09:42 AM, SUNDAY A. OLUTAYO wrote:
> Dear all,
>
> I have issue with the red portion function below;
>
> This IF last_id IS NULL THEN suppose to test if last_id is NULL, that is
> the select query did not found it
> then execute the rest of the red sql but it always fail to insert the
> *NEW.amount *into*amount*, every other things fine.

Is there a NEW.amount?

>
> Kindly help out.
>
>
>
>
> Thanks,
>
> Sunday Olutayo
>
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Wilson 2012-09-26 19:55:56 Odd Invalid type name error in postgresql 9.1
Previous Message Scot Kreienkamp 2012-09-26 19:03:22 Re: idle in transaction query makes server unresponsive