From 16f5b6415ddc55fb50b2fb5f60ab83219bc4f799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Ro=C5=9Bciszewski?= Date: Thu, 5 Mar 2015 18:23:57 +0100 Subject: [PATCH] Correct HasPrefix method name --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] } }