Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #589 from erizocosmico/feature/transaction-isolation
Browse files Browse the repository at this point in the history
sql: add transaction_isolation default value
  • Loading branch information
ajnavarro authored Jan 17, 2019
2 parents e9244aa + 30c1b05 commit 8e113a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ var queries = []struct {
{"collation_database", "utf8_bin"},
{"ndbinfo_version", ""},
{"sql_select_limit", math.MaxInt32},
{"transaction_isolation", "READ UNCOMMITTED"},
},
},
{
Expand Down
1 change: 1 addition & 0 deletions sql/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func DefaultSessionConfig() map[string]TypedValue {
"collation_database": TypedValue{Text, "utf8_bin"},
"ndbinfo_version": TypedValue{Text, ""},
"sql_select_limit": TypedValue{Int32, math.MaxInt32},
"transaction_isolation": TypedValue{Text, "READ UNCOMMITTED"},
}
}

Expand Down

0 comments on commit 8e113a9

Please sign in to comment.