Fix typo in "_locking_mode" DSN handling

This commit is contained in:
Andrii Zavorotnii 2019-09-23 14:57:24 -07:00
parent c4a8658099
commit 27d3ed467c
1 changed files with 1 additions and 1 deletions

View File

@ -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)