Re: ecpg 'set' failure using host vars

Поиск
Список
Период
Сортировка
От Bosco Rama
Тема Re: ecpg 'set' failure using host vars
Дата
Msg-id 48A70C6A.6080107@boscorama.com
обсуждение исходный текст
Ответ на Re: ecpg 'set' failure using host vars  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ecpg 'set' failure using host vars  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-interfaces
Sorry about the 'false start' before. :-(

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


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

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