aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorKevin Burke <kev@inburke.com>2016-10-31 07:32:19 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2016-10-31 17:17:46 +0000
commit92568bcb6a374aecf2ece6607829b26f5e57ac28 (patch)
treefca917b3b603bef3cf1c2e9c5edcfb521a7df982 /src/database/sql
parent4b90b7a28a0c1a849eed765cc511eacbae4d2651 (diff)
downloadgo-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')
-rw-r--r--src/database/sql/sql.go8
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