Re: consequent PQsendQueryPrepared() failed: another command is already in progress

Поиск
Список
Период
Сортировка
Искать
От
Anton Maksimenkov
Тема
Re: consequent PQsendQueryPrepared() failed: another command is already in progress
Дата
Msg-id
AANLkTilgPIc8nEY6i3ckoqGrZkqvS7qBlLsBL2LA_9Cr@mail.gmail.com
Ответ на
Список
Дерево обсуждения
consequent PQsendQueryPrepared() failed: another command is already in progress Anton Maksimenkov <anton200@gmail.com>
Re: consequent PQsendQueryPrepared() failed: another command is already in progress Jeff Davis <pgsql@j-davis.com>
Re: consequent PQsendQueryPrepared() failed: another command is already in progress Yeb Havinga <yebhavinga@gmail.com>
Re: consequent PQsendQueryPrepared() failed: another command is already in progress Tom Lane <tgl@sss.pgh.pa.us>
Re: consequent PQsendQueryPrepared() failed: another command is already in progress Anton Maksimenkov <anton200@gmail.com>
2010/6/16 Tom Lane :
>> But it success only at first time, and then fail with error:
>> ... "another command is already in progress"
>> [ PQsendQuery followed by just one PQgetResult ]
>
> IIRC, you need to keep calling PQgetResult until it returns NULL
> before the connection is considered cleared and ready for another query.

Yes, thanks, that was exactly what I missed.

Thanks to all, guys.
-- 
antonvm
В списке pgsql-general по дате отправления
От: Bryan Montgomery
Дата:
Сообщение: Re: GSS Authentication
От: Dennis Gearon
Дата:
FAQ