From ae4b60773ac62f0b280cd7c054bbfe81f43873a4 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 29 Jan 2013 09:16:39 +0900 Subject: [PATCH] add flag SQLITE_OPEN_URI to open. closes #38 --- sqlite3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 0a21d23..fb15be1 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -111,7 +111,8 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { rv := C.sqlite3_open_v2(name, &db, C.SQLITE_OPEN_FULLMUTEX| C.SQLITE_OPEN_READWRITE| - C.SQLITE_OPEN_CREATE, + C.SQLITE_OPEN_CREATE | + C.SQLITE_OPEN_URI, nil) if rv != 0 { return nil, errors.New(C.GoString(C.sqlite3_errmsg(db)))