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
обсуждение исходный текст
Ответ на Re: consequent PQsendQueryPrepared() failed: another command is already in progress  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
2010/6/16 Tom Lane <tgl@sss.pgh.pa.us>:
>> 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
Дата:
Сообщение: Re: world meaningful date time input