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