pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Meskes <meskes@postgresql.org>
Cc: Bosco Rama <postgres@boscorama.com>
Cc: pgsql-interfaces@postgresql.org, PostgreSQL Hacker <pgsql-hackers@postgresql.org>
Subject: Re: ecpg 'set' failure using host vars
Date: Sat, 16 Aug 2008 12:01:00 -0400
Message-ID: <14940.1218902460@sss.pgh.pa.us> (raw)
In-Reply-To: <20080816083156.GA26567@feivel.credativ.de>
References: <48A64DE5.4000906@boscorama.com>
	<20080816083156.GA26567@feivel.credativ.de>

Michael Meskes <meskes@postgresql.org> 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



view thread (9+ messages)  latest in thread

Message-ID: <14940.1218902460@sss.pgh.pa.us>
Permalink:  ../14940.1218902460@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14940.1218902460@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, meskes@postgresql.org, postgres@boscorama.com, pgsql-hackers@postgresql.org
  Subject: Re: ecpg 'set' failure using host vars
  In-Reply-To: <14940.1218902460@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox