From fd2e006c32a407e4f097250b1e5e7f04098bae7b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Sep 2012 09:50:53 +0200 Subject: Make sure we support older versions of SQLite (3.5.3 and up) --- odb/sqlite/connection-factory.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/sqlite/connection-factory.cxx') 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 #include +#include // 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) { -- cgit v1.1