package pgxpool

import (
	
	
)

type poolBatchResults struct {
	br pgx.BatchResults
	c  *Conn
	tx *Tx // owns c instead when the batch began a transaction
}

func ( *poolBatchResults) () (pgconn.CommandTag, error) {
	return .br.Exec()
}

func ( *poolBatchResults) () (pgx.Rows, error) {
	return .br.Query()
}

func ( *poolBatchResults) () pgx.Row {
	return .br.QueryRow()
}

func ( *poolBatchResults) () error {
	 := .br.Close()
	if .c != nil {
		.c.Release()
		.c = nil
	}
	return 
}

func ( *poolBatchResults) () pgx.Tx {
	if .tx == nil {
		return nil
	}
	return .tx
}