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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-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

Browse pgsql-hackers by date

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

Browse pgsql-interfaces by date

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