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
|
@ -52,6 +52,5 @@ func (db *DB) Close() (err error) {
|
||||||
func (db *DB) opt(writable bool) *sql.TxOptions {
|
func (db *DB) opt(writable bool) *sql.TxOptions {
|
||||||
return &sql.TxOptions{
|
return &sql.TxOptions{
|
||||||
ReadOnly: !writable,
|
ReadOnly: !writable,
|
||||||
Isolation: sql.LevelReadCommitted,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue