diff --git a/sqlite3.go b/sqlite3.go index b7b7f81..5f94a96 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -286,7 +286,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { } } - if !strings.HasPrefox(dsn, "file:") { + if !strings.HasPrefix(dsn, "file:") { dsn = dsn[:pos] } }