diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-10-02 08:29:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-10-02 08:46:39 +0200 |
commit | 275f4e494cacd403d28b01f8e3356a6669ef8e13 (patch) | |
tree | a5ace7d893a5ff335038e5db9f72d4cf33bd60d5 /odb/sqlite/database.hxx | |
parent | 29f048816a31422685c44085ac20e45d97f95ecf (diff) |
Add support for SQLite 3.3.6
That's what is still shipped with RHEL5.
Diffstat (limited to 'odb/sqlite/database.hxx')
-rw-r--r-- | odb/sqlite/database.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/sqlite/database.hxx b/odb/sqlite/database.hxx index 6039f23..fd4a736 100644 --- a/odb/sqlite/database.hxx +++ b/odb/sqlite/database.hxx @@ -27,6 +27,15 @@ #include <odb/sqlite/details/export.hxx> +// We use the sqlite3_open_v2() flags in our interface. Define them +// for SQLite earlier that 3.5.0. +// +#if SQLITE_VERSION_NUMBER < 3005000 +# define SQLITE_OPEN_READONLY 0x00000001 +# define SQLITE_OPEN_READWRITE 0x00000002 +# define SQLITE_OPEN_CREATE 0x00000004 +#endif + namespace odb { namespace sqlite |