passing parameters to multiple statements - Mailing list pgsql-general

From Konstantin Izmailov
Subject passing parameters to multiple statements
Date
Msg-id 72746b5e0911152130l3dcd465bj2b9c1b0b8a2481d2@mail.gmail.com
Whole thread Raw
Responses Re: passing parameters to multiple statements  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: passing parameters to multiple statements  (manitou-sig@sd-9404.dedibox.fr)
List pgsql-general
I'm planning to use multiple statements via libpq. Before starting coding I'm trying to understand are there any limitations on passing parameters. E.g. would the following work:
  PQexecParams(conn, "BEGIN;INSERT INTO tbl VALUES($1,$2);SELECT lastval();SELECT * INTO AUDIT FROM (SELECT $3, 'tbl action', lastval());COMMIT;", 3, ...);
 
Thank you!

pgsql-general by date:

Previous
From: Konstantin Izmailov
Date:
Subject: Re: "money" binary representation
Next
From: Jasen Betts
Date:
Subject: Re: "money" binary representation