Search Postgresql Archives

Re: Trigger (Transaction related)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> wrote:
"Harpreet Dhaliwal" < harpreet.dhaliwal01@xxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux