diff options
| author | Kevin Burke <kev@inburke.com> | 2016-10-31 07:32:19 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-10-31 17:17:46 +0000 |
| commit | 92568bcb6a374aecf2ece6607829b26f5e57ac28 (patch) | |
| tree | fca917b3b603bef3cf1c2e9c5edcfb521a7df982 /src/database/sql/sql.go | |
| parent | 4b90b7a28a0c1a849eed765cc511eacbae4d2651 (diff) | |
| download | go-92568bcb6a374aecf2ece6607829b26f5e57ac28.tar.xz | |
database/sql: correctly spell constants
Also add a link to more information about isolation levels as defined by the
SQL standard. Fixes #17682.
Change-Id: I94c53b713f4c882af40cf15fe5f1e5dbc53ea741
Reviewed-on: https://go-review.googlesource.com/32418
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/database/sql/sql.go')
| -rw-r--r-- | src/database/sql/sql.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go index 6d2dcb8c73..43227e92ea 100644 --- a/src/database/sql/sql.go +++ b/src/database/sql/sql.go @@ -97,11 +97,13 @@ type IsolationLevel int // Various isolation levels that drivers may support in BeginContext. // If a driver does not support a given isolation level an error may be returned. +// +// See https://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels. const ( LevelDefault IsolationLevel = iota - LevelReadUncommited - LevelReadCommited - LevelWriteCommited + LevelReadUncommitted + LevelReadCommitted + LevelWriteCommitted LevelRepeatableRead LevelSnapshot LevelSerializable |
