func multiInsert returns nil when err != nil
I suspect it should return err.
This commit is contained in:
committed by
Jack Christensen
parent
672431c0bd
commit
62a7e19a04
+1
-1
@@ -484,7 +484,7 @@ func multiInsert(conn *pgx.Conn, tableName string, columnNames []string, rowSrc
|
||||
}
|
||||
|
||||
if err := tx.Commit(context.Background()); err != nil {
|
||||
return 0, nil
|
||||
return 0, err
|
||||
}
|
||||
|
||||
return rowCount, nil
|
||||
|
||||
Reference in New Issue
Block a user