Don't modify dsn when has prefix file:
This commit is contained in:
@@ -286,7 +286,9 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
|
||||
}
|
||||
}
|
||||
|
||||
dsn = dsn[:pos]
|
||||
if !strings.HasPrefox(dsn, "file:") {
|
||||
dsn = dsn[:pos]
|
||||
}
|
||||
}
|
||||
|
||||
var db *C.sqlite3
|
||||
|
||||
Reference in New Issue
Block a user