2
0

First extraction of base.Conn

This commit is contained in:
Jack Christensen
2018-11-10 18:48:43 -06:00
parent 670e85136f
commit 2e72ca854a
12 changed files with 92 additions and 69 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func (b *Batch) Send(ctx context.Context, txOptions *TxOptions) error {
b.conn.pendingReadyForQueryCount++
}
n, err := b.conn.conn.Write(buf)
n, err := b.conn.BaseConn.NetConn.Write(buf)
if err != nil {
if fatalWriteErr(n, err) {
b.conn.die(err)