From 27d3ed467ce851ce42445bf05c495629a766914f Mon Sep 17 00:00:00 2001 From: Andrii Zavorotnii Date: Mon, 23 Sep 2019 14:57:24 -0700 Subject: [PATCH] Fix typo in "_locking_mode" DSN handling --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 19f107a..9eec636 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -1232,7 +1232,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { if _, ok := params["_locking"]; ok { pkey = "_locking" } - if val := params.Get("_locking"); val != "" { + if val := params.Get(pkey); val != "" { switch strings.ToUpper(val) { case "NORMAL", "EXCLUSIVE": lockingMode = strings.ToUpper(val)