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:29:06 +0200 |
commit | b3a299fbbd80e69554b37d0ae30cf2c45a98d1a6 (patch) | |
tree | 89055429d81c77fd6104fc07fa854f734657a408 /odb/sqlite/database.hxx | |
parent | 29b45e1658840b0ce5f67529b46cad5d595433c4 (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 ee758e5..d2053e5 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 |