Re: SQL statement PREPARE does not work in ECPG
| От | Michael Meskes |
|---|---|
| Тема | Re: SQL statement PREPARE does not work in ECPG |
| Дата | |
| Msg-id | 7511ed31638ebf7da968db61149de2ebb31d0407.camel@postgresql.org обсуждение исходный текст |
| Ответ на | RE: SQL statement PREPARE does not work in ECPG ("Takahashi, Ryohei" <r.takahashi_2@jp.fujitsu.com>) |
| Ответы |
RE: SQL statement PREPARE does not work in ECPG
|
| Список | 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
В списке pgsql-hackers по дате отправления: