Re: Trigger (Transaction related) - Mailing list pgsql-general

From Harpreet Dhaliwal
Subject Re: Trigger (Transaction related)
Date
Msg-id d86a77ef0609010859m3c214b00xe2ecffb61038a5aa@mail.gmail.com
Whole thread Raw
In response to Re: Trigger (Transaction related)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@sss.pgh.pa.us> wrote:
"Harpreet Dhaliwal" < harpreet.dhaliwal01@gmail.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

pgsql-general by date:

Previous
From: "Christopher Murtagh"
Date:
Subject: Array comparison - subset
Next
From: Tom Lane
Date:
Subject: Re: Strange error related to temporary tables