Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7796E6501C0; Sat, 16 Aug 2008 13:01:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48454-06; Sat, 16 Aug 2008 13:01:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 87815650306; Sat, 16 Aug 2008 13:01:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m7GG108e014941; Sat, 16 Aug 2008 12:01:00 -0400 (EDT) To: Michael Meskes cc: Bosco Rama , pgsql-interfaces@postgresql.org, PostgreSQL Hacker Subject: Re: ecpg 'set' failure using host vars In-reply-to: <20080816083156.GA26567@feivel.credativ.de> References: <48A64DE5.4000906@boscorama.com> <20080816083156.GA26567@feivel.credativ.de> Comments: In-reply-to Michael Meskes message dated "Sat, 16 Aug 2008 10:31:56 +0200" Date: Sat, 16 Aug 2008 12:01:00 -0400 Message-ID: <14940.1218902460@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/8 X-Sequence-Number: 6783 Michael Meskes writes: > Without checking the sources it seems as if PQexecParams is not able to handle a parameter in a set command. Can anyone confirm this? The backend only supports parameters in plannable statements, ie SELECT/INSERT/UPDATE/DELETE. (Possibly DECLARE CURSOR, I'm too lazy to check.) regards, tom lane