Re: pqgetresultset problem

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: pqgetresultset problem
Дата
Msg-id 20030814050242.O80590-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: pqgetresultset problem  ("P.Harikrishnan" <harikrishnan@midascomm.com>)
Список pgsql-novice
On Thu, 14 Aug 2003, P.Harikrishnan wrote:

> Hi Stephan,
>  Thanx for the reply.
>   I am using asynchronous execution of queries and not pqexec.
>   So it is possible to get all the result sets one by one by calling
> pqGetResultset till it returns NULL
>   So I am assuming that i can leave the query which failed and process the
> rest of the resultsets. But what is happening is once a
>   query fails, pqGetResultset return NULL.

My guess would be that the queries are probably still sent as a single
transaction given that PQexec appears to basically be: setup, use
PQsendQuery, get the result from the last result. The following queries
fail because you can't do queries while in the failed transaction state.



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

Предыдущее
От: Nabil Sayegh
Дата:
Сообщение: Re: drop/add fk in transaction
Следующее
От: Jason Hihn
Дата:
Сообщение: User/login questions