Re: Trigger (Transaction related)

From: "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger (Transaction related)
Date: 2006-09-01 15:59:57
Message-ID: d86a77ef0609010859m3c214b00xe2ecffb61038a5aa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Exactly Tom,
I was missing a few paranthesis like a nut.
Thanks for pointing out.

Thanks and regards

~Harpreet

On 9/1/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com> writes:
> > sprintf(buffer, "INSERT INTO headers (id, header_content) VALUES ( %d,
> > SELECT contents FROM parser WHERE id = %d ), id, id);
> > SPI_exec(buffer,0).
>
> You're short some parentheses --- try executing a comparable query
> manually.
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2006-09-01 16:03:11 Re: Thought provoking piece on NetBSD
Previous Message Christopher Murtagh 2006-09-01 15:55:32 Array comparison - subset