Re: EXECUTE does not process parameters

2018-04-30 Thread Tom Lane
Peter Eisentraut writes: > The SQL-level EXECUTE statement does not process parameters in its > arguments. So for example, the following does not work: > ... > It seems this needs some special treatment in transformStmt(). Any > reason not to do that? I have a vague recollection of having poked

EXECUTE does not process parameters

2018-04-30 Thread Peter Eisentraut
The SQL-level EXECUTE statement does not process parameters in its arguments. So for example, the following does not work: create table t1 (a int); prepare p1 as insert into t1 (a) values ($1); create function f2(x int) returns int language sql as $$ execute p1($1); -- HERE select null::int; $