Skip to content

Commit

Permalink
add tx_isolation param for mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Oct 3, 2020
1 parent 1f06ab7 commit 509695e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (c mysqlConfig) DSN() string {
v := url.Values{}
v.Set("parseTime", "true")
v.Set("transaction_isolation", "'READ-COMMITTED'")
v.Set("tx_isolation", "'READ-COMMITTED'") // for MariaDB
v.Set("timeout", c.DialTimeout.String())
v.Set("readTimeout", c.ReadTimeout.String())
v.Set("writeTimeout", c.WriteTimeout.String())
Expand Down

0 comments on commit 509695e

Please sign in to comment.