diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-20 17:15:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-20 17:15:13 +0200 |
commit | d8fed1d9dbab80e14033b385c604abb41cc84390 (patch) | |
tree | 9dabc13bcb51531c3b7ae81b242f09e954f160fa | |
parent | fd2e006c32a407e4f097250b1e5e7f04098bae7b (diff) |
More older SQLite compatibility fixes
-rw-r--r-- | odb/sqlite/connection-factory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/sqlite/connection-factory.cxx b/odb/sqlite/connection-factory.cxx index 63d7507..62e43f2 100644 --- a/odb/sqlite/connection-factory.cxx +++ b/odb/sqlite/connection-factory.cxx @@ -119,7 +119,7 @@ namespace odb // Unless explicitly disabled, enable shared cache. // -#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY +#if SQLITE_VERSION_NUMBER >= 3006018 && defined(LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY) if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0) extra_flags_ |= SQLITE_OPEN_SHAREDCACHE; #endif @@ -194,7 +194,7 @@ namespace odb // Unless explicitly disabled, enable shared cache. // -#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY +#if SQLITE_VERSION_NUMBER >= 3006018 && defined(LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY) if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0) extra_flags_ |= SQLITE_OPEN_SHAREDCACHE; #endif |