2
0

Use ++ instead of += 1

This commit is contained in:
Jack Christensen
2020-05-07 20:25:38 -05:00
parent f9ce8af5c9
commit f18351f61c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ func (tx *dbTx) Begin(ctx context.Context) (Tx, error) {
return nil, ErrTxClosed
}
tx.savepointNum += 1
tx.savepointNum++
_, err := tx.conn.Exec(ctx, "savepoint sp_"+strconv.FormatInt(tx.savepointNum, 10))
if err != nil {
return nil, err