diff options
author | Antoni Rościszewski <antoni.rosciszewski@gmail.com> | 2015-03-05 18:23:57 +0100 |
---|---|---|
committer | Antoni Rościszewski <antoni.rosciszewski@gmail.com> | 2015-03-05 18:23:57 +0100 |
commit | 16f5b6415ddc55fb50b2fb5f60ab83219bc4f799 (patch) | |
tree | 4be1502debf5466a87c75354a7765dfecb96491f | |
parent | Don't modify dsn when has prefix file: (diff) | |
download | golite-16f5b6415ddc55fb50b2fb5f60ab83219bc4f799.tar.gz golite-16f5b6415ddc55fb50b2fb5f60ab83219bc4f799.tar.xz |
Correct HasPrefix method name
-rw-r--r-- | sqlite3.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] } } |