2
0

Add CopyFrom to pool

This commit is contained in:
Jack Christensen
2019-04-25 15:35:53 -05:00
parent 7b1272d254
commit d93de3fdc7
11 changed files with 134 additions and 8 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ func (tx *Tx) QueryRow(ctx context.Context, sql string, args ...interface{}) Row
}
// CopyFrom delegates to the underlying *Conn
func (tx *Tx) CopyFrom(ctx context.Context, tableName Identifier, columnNames []string, rowSrc CopyFromSource) (int, error) {
func (tx *Tx) CopyFrom(ctx context.Context, tableName Identifier, columnNames []string, rowSrc CopyFromSource) (int64, error) {
if tx.status != TxStatusInProgress {
return 0, ErrTxClosed
}