Hello, thanks for looking at this patch. On 2021-Feb-16, Zhihong Yu wrote:
> + if (querymode == QUERY_SIMPLE) > + { > + commandFailed(st, "startpipeline", "cannot use pipeline mode > with the simple query protocol"); > + st->state = CSTATE_ABORTED; > + return CSTATE_ABORTED; > > I wonder why the st->state is only assigned for this if block. The state is > not set for other cases where CSTATE_ABORTED is returned. Yeah, that's a simple oversight. We don't need to set st->state, because the caller sets it to the value we return. > Should PQ_PIPELINE_OFF be returned for the following case ? > > +PQpipelineStatus(const PGconn *conn) > +{ > + if (!conn) > + return false; Yep. Thanks -- Álvaro Herrera 39°49'30"S 73°17'W