diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-19 09:50:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-19 09:50:53 +0200 |
commit | fd2e006c32a407e4f097250b1e5e7f04098bae7b (patch) | |
tree | a66fd91f636104b621998b3df5be4575009ff743 /odb/sqlite/connection-factory.cxx | |
parent | a77615868e8935e84ebbb4c441858917e971942c (diff) |
Make sure we support older versions of SQLite (3.5.3 and up)
Diffstat (limited to 'odb/sqlite/connection-factory.cxx')
-rw-r--r-- | odb/sqlite/connection-factory.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/sqlite/connection-factory.cxx b/odb/sqlite/connection-factory.cxx index 75f1240..63d7507 100644 --- a/odb/sqlite/connection-factory.cxx +++ b/odb/sqlite/connection-factory.cxx @@ -7,6 +7,8 @@ #include <odb/sqlite/database.hxx> #include <odb/sqlite/connection-factory.hxx> +#include <odb/sqlite/details/config.hxx> // LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY + using namespace std; namespace odb @@ -117,8 +119,10 @@ namespace odb // Unless explicitly disabled, enable shared cache. // +#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0) extra_flags_ |= SQLITE_OPEN_SHAREDCACHE; +#endif } // @@ -190,8 +194,10 @@ namespace odb // Unless explicitly disabled, enable shared cache. // +#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0) extra_flags_ |= SQLITE_OPEN_SHAREDCACHE; +#endif if (min_ > 0) { |