Skip site navigation (1) Skip section navigation (2)

Re: ecpg 'set' failure using host vars

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: Bosco Rama <postgres(at)boscorama(dot)com>, pgsql-interfaces(at)postgresql(dot)org, PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ecpg 'set' failure using host vars
Date: 2008-08-16 16:01:00
Message-ID: 14940.1218902460@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
Michael Meskes <meskes(at)postgresql(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2008-08-16 16:22:16
Subject: Re: Parsing of pg_hba.conf and authentication inconsistencies
Previous:From: Tom LaneDate: 2008-08-16 15:59:23
Subject: Re: proposal sql: labeled function params

pgsql-interfaces by date

Next:From: Bosco RamaDate: 2008-08-16 17:16:56
Subject: Re: ecpg 'set' failure using host vars
Previous:From: Michael MeskesDate: 2008-08-16 08:31:56
Subject: Re: ecpg 'set' failure using host vars

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group