2
0

Fix bug with ready for query counter

This commit is contained in:
Jack Christensen
2019-01-01 17:08:56 -06:00
parent 7986e2726d
commit 547741ae6a
+1 -1
View File
@@ -382,7 +382,6 @@ func (pgConn *PgConn) SendExecParams(sql string, paramValues [][]byte, paramOIDs
pgConn.batchBuf = (&pgproto3.Parse{Query: sql, ParameterOIDs: paramOIDs}).Encode(pgConn.batchBuf)
pgConn.SendExecPrepared("", paramValues, paramFormats, resultFormats)
pgConn.batchCount += 1
}
// SendExecPrepared enqueues the execution of a prepared statement via the PostgreSQL extended query protocol.
@@ -708,6 +707,7 @@ func (pgConn *PgConn) bufferLastResult(ctx context.Context) (*PgResult, error) {
CommandTag: commandTag,
}
}
if result == nil {
return nil, errors.New("unexpected missing result")
}