From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | "Takahashi, Ryohei" <r(dot)takahashi_2(at)jp(dot)fujitsu(dot)com>, "Matsumura, Ryo" <matsumura(dot)ryo(at)jp(dot)fujitsu(dot)com>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: SQL statement PREPARE does not work in ECPG |
Date: | 2019-02-20 12:17:12 |
Message-ID: | 7511ed31638ebf7da968db61149de2ebb31d0407.camel@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Takahashi-san,
> EXEC SQL EXECUTE test_prep (2);
Could you please also verify for me if this works correctly if you use
a variable instead of the const? As in:
EXEC SQL BEGIN DECLARE SECTION;
int i=2;
EXEC SQL END DECLARE SECTION;
...
EXEC SQL EXECUTE test_prep (:i);
I guess the problem is that constants in this subtree are move to the
output literally instead treated as parameters.
Thanks.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Etsuro Fujita | 2019-02-20 12:25:51 | Re: Problems with plan estimates in postgres_fdw |
Previous Message | Alexey Kondratov | 2019-02-20 12:06:11 | Re: [Patch] pg_rewind: options to use restore_command from recovery.conf or command line |