Don’t use non-default isolation level for mysql
This commit is contained in:
parent
3194253b71
commit
8b508b09c6
1 changed files with 1 additions and 2 deletions
|
@ -51,7 +51,6 @@ func (db *DB) Close() (err error) {
|
|||
|
||||
func (db *DB) opt(writable bool) *sql.TxOptions {
|
||||
return &sql.TxOptions{
|
||||
ReadOnly: !writable,
|
||||
Isolation: sql.LevelReadCommitted,
|
||||
ReadOnly: !writable,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue