diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-27 10:19:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-27 10:19:39 +0200 |
commit | f1f4129311ef43d2320fa44571f749a8e9c5b9eb (patch) | |
tree | e5477bfcef691c7bb38d38ace0b80b3fb9111e2c /libcommon/common/common.cxx | |
parent | c4f40393e585d1a22115259188d2758821643cf3 (diff) |
Enable URI paths for SQLite database
Diffstat (limited to 'libcommon/common/common.cxx')
-rw-r--r-- | libcommon/common/common.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libcommon/common/common.cxx b/libcommon/common/common.cxx index a786fb5..6990924 100644 --- a/libcommon/common/common.cxx +++ b/libcommon/common/common.cxx @@ -111,7 +111,14 @@ create_database (int& argc, db.reset ( new sqlite::database ( - argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, true, + argc, argv, false, + SQLITE_OPEN_READWRITE + | SQLITE_OPEN_CREATE +#ifdef SQLITE_OPEN_URI + | SQLITE_OPEN_URI +#endif + , + true, #ifdef HAVE_CXX11 move (f) #else |