Re: Return results for PQexec vs PQexecP*

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Re: Return results for PQexec vs PQexecP*
Дата
Msg-id 12820.58.8.76.221.1147878486.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответ на Re: Return results for PQexec vs PQexecP*  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
On Wed, May 17, 2006 19:53, Martijn van Oosterhout wrote:

> The main problem with PQexec and co is that they don't really do very
> well if a single query produces multiple result sets. I'm not sure if
> it's defined whether you get the first or the last. In any case, if you
> want all the result sets, you need to be looking at PQsendquery and co.

AFAIK it's well-defined if you send multiple queries in a single string,
separated by semicolons: PQexec() returns the result of the last query.


Jeroen




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_dump and backslash escapes
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: PL/pgSQL 'i = i + 1' Syntax