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

Commit 30c1b05

Browse files
committed
sql: add transaction_isolation default value
Signed-off-by: Miguel Molina <[email protected]>
1 parent fa02b97 commit 30c1b05

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

engine_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ var queries = []struct {
542542
{"collation_database", "utf8_bin"},
543543
{"ndbinfo_version", ""},
544544
{"sql_select_limit", math.MaxInt32},
545+
{"transaction_isolation", "READ UNCOMMITTED"},
545546
},
546547
},
547548
{

sql/session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ func DefaultSessionConfig() map[string]TypedValue {
166166
"collation_database": TypedValue{Text, "utf8_bin"},
167167
"ndbinfo_version": TypedValue{Text, ""},
168168
"sql_select_limit": TypedValue{Int32, math.MaxInt32},
169+
"transaction_isolation": TypedValue{Text, "READ UNCOMMITTED"},
169170
}
170171
}
171172

0 commit comments

Comments
 (0)