forked from mirror/go-sqlcipher
Fix typo in "_locking_mode" DSN handling
This commit is contained in:
parent
c4a8658099
commit
27d3ed467c
|
@ -1232,7 +1232,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
|
||||||
if _, ok := params["_locking"]; ok {
|
if _, ok := params["_locking"]; ok {
|
||||||
pkey = "_locking"
|
pkey = "_locking"
|
||||||
}
|
}
|
||||||
if val := params.Get("_locking"); val != "" {
|
if val := params.Get(pkey); val != "" {
|
||||||
switch strings.ToUpper(val) {
|
switch strings.ToUpper(val) {
|
||||||
case "NORMAL", "EXCLUSIVE":
|
case "NORMAL", "EXCLUSIVE":
|
||||||
lockingMode = strings.ToUpper(val)
|
lockingMode = strings.ToUpper(val)
|
||||||
|
|
Loading…
Reference in New Issue