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

Re: ecpg 'set' failure using host vars

From: Bosco Rama <postgres(at)boscorama(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ecpg 'set' failure using host vars
Date: 2008-08-16 17:20:42
Message-ID: 48A70C6A.6080107@boscorama.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
Sorry about the 'false start' before. :-(

Tom Lane wrote:
> 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.)

Thanks for the hint guys.  I used a prepare/execute pair instead and
it worked a treat.  More cumbersome but it gets the job done.

Thanks again.

Bosco.

In response to

Responses

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2008-08-16 17:44:38
Subject: Re: proposal sql: labeled function params
Previous:From: Bosco RamaDate: 2008-08-16 17:16:56
Subject: Re: ecpg 'set' failure using host vars

pgsql-interfaces by date

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

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