Re: trigger question

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Apu Islam <apuislam(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: trigger question
Date: 2005-08-17 01:17:21
Message-ID: 20050817011721.GA13600@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 16, 2005 at 07:19:38PM -0500, Apu Islam wrote:
> I have a trigger which is not working properly.
> The error I get is parse error at $1. I am putting the code here for
> someone to see and comment on.

When do you get the error? When you create the function, or when
the trigger calls it? What version of PostgreSQL are you using?

> INSERT INTO customer_stat VALUES (
> ''NEW.cisconasport'',NEW.h323connecttime,hour,0,0,0,0,0,''p$

The above INSERT command looks odd. Why do you quote NEW.cisconasport?
Where does the last pair of single quotes having a closing pair?
Where are the closing parenthesis and statement-terminating semicolon?

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2005-08-17 01:33:26 Re: table clustering brings joy
Previous Message Apu Islam 2005-08-17 00:19:38 trigger question