Re: ecpg 'set' failure using host vars

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: ecpg 'set' failure using host vars
Дата
Msg-id 20080818145821.GA5062@feivel.credativ.de
обсуждение исходный текст
Ответ на Re: ecpg 'set' failure using host vars  (Bosco Rama <postgres@boscorama.com>)
Список pgsql-interfaces
>>> 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.

I will fix this as soon as my time permits. There is logic there in ecpg to
handle parameters on the client side. 

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Bosco Rama
Дата:
Сообщение: Re: ecpg 'set' failure using host vars
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: ecpg 'set' failure using host vars