From d86face730503bc57e71e361aa1eff54d914cc34 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 5 Mar 2015 12:49:22 +0900 Subject: [PATCH] Fix filename with loc parameter --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 454e42d..6b74f7f 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -286,7 +286,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { } } - dsn = dsn[:pos-1] + dsn = dsn[:pos] } var db *C.sqlite3