From 92568bcb6a374aecf2ece6607829b26f5e57ac28 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Mon, 31 Oct 2016 07:32:19 -0700 Subject: [PATCH] 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 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/database/sql/sql.go | 8 +++++--- 1 file 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