2
0

Allow specifying LevelRepeatableRead

This commit is contained in:
Nathaniel Caza
2019-08-07 13:49:34 -05:00
parent ca9de51256
commit 9e3f51e5c6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e
pgxOpts.IsoLevel = pgx.ReadUncommitted
case sql.LevelReadCommitted:
pgxOpts.IsoLevel = pgx.ReadCommitted
case sql.LevelSnapshot:
case sql.LevelRepeatableRead, sql.LevelSnapshot:
pgxOpts.IsoLevel = pgx.RepeatableRead
case sql.LevelSerializable:
pgxOpts.IsoLevel = pgx.Serializable