Is PQgetResult() guaranteed to return the whole SQL command result?

2017-12-13 Thread Arseny Sher
Hi, I wonder is it guaranteed that one PQgetResult() call returns result for the whole one statement (SQL command) in usual (not SingleRow) mode? For instance, if I run PQsendQuery with query consisting of two statements (separated by semicolons), is possible to have three or more PQgetResult call

Re: Is PQgetResult() guaranteed to return the whole SQL command result?

2017-12-13 Thread Peter Eisentraut
On 12/13/17 08:50, Arseny Sher wrote: > I wonder is it guaranteed that one PQgetResult() call returns result for > the whole one statement (SQL command) in usual (not SingleRow) mode? > For instance, if I run PQsendQuery with query consisting of two > statements (separated by semicolons), is possib

Re: Is PQgetResult() guaranteed to return the whole SQL command result?

2017-12-13 Thread Arseny Sher
Peter Eisentraut writes: > Are you asking whether it is possible that the results for the two > statements might be split across more than two libpq result sets? > That is not possible. Yes, that was the question. Thanks! -- Arseny Sher Postgres Professional: http://www.postgrespro.com The Russ