From bb42c28ba57b5f9850d4fe66ec3534135d80fb75 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Tue, 29 May 2018 12:01:16 +0200 Subject: [PATCH] Fix: pkey Ensure pkey is empty for next condition --- sqlite3.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sqlite3.go b/sqlite3.go index d009358..b932305 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -811,10 +811,10 @@ func errorString(err Error) string { // When enabling this options behaviour of LIKE will become case-sensitive. // // _foreign_keys=Boolean | _fk=Boolean -// Enable or disable enforcement of foreign keys. X can be 1 or 0. +// Enable or disable enforcement of foreign keys. // -// _recursive_triggers=Boolean -// Enable or disable recursive triggers. X can be 1 or 0. +// _recursive_triggers=Boolean | _rt=Boolean +// Enable or disable recursive triggers. // // _vacuum=X // 0 | none - Auto Vacuum disabled @@ -905,6 +905,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { // // https://www.sqlite.org/pragma.html#pragma_busy_timeout // + pkey = "" // Reset pkey if _, ok := params["_busy_timeout"]; ok { pkey = "_busy_timeout" } @@ -938,6 +939,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { // // https://www.sqlite.org/pragma.html#pragma_foreign_keys // + pkey = "" // Reset pkey if _, ok := params["_foreign_keys"]; ok { pkey = "_foreign_keys" }