Re: trigger question

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: trigger question
Дата
Msg-id 20050817011721.GA13600@winnie.fuhr.org
обсуждение исходный текст
Ответ на trigger question  (Apu Islam <apuislam@gmail.com>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Apu Islam
Дата:
Сообщение: trigger question
Следующее
От: Greg Stark
Дата:
Сообщение: Re: table clustering brings joy