pgsql: Fix libpq state machine in pipeline mode

2021-06-29 Thread Alvaro Herrera
Fix libpq state machine in pipeline mode The original coding required that PQpipelineSync had been called before the first call to PQgetResult, and failure to do that would result in an unexpected NULL result being returned. Fix by setting the right state when a query is sent, rather than leaving

pgsql: Fix libpq state machine in pipeline mode

2021-06-29 Thread Alvaro Herrera
Fix libpq state machine in pipeline mode The original coding required that PQpipelineSync had been called before the first call to PQgetResult, and failure to do that would result in an unexpected NULL result being returned. Fix by setting the right state when a query is sent, rather than leaving