add flag SQLITE_OPEN_URI to open. closes #38

This commit is contained in:
mattn 2013-01-29 09:16:39 +09:00
parent b8adf7d8c1
commit ae4b60773a
1 changed files with 2 additions and 1 deletions

View File

@ -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)))