summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-05-26 22:09:21 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-05-26 22:09:21 +0200
commit978bb2523f2eef42eca8dbe35e0ad351a4953aa7 (patch)
tree6a7dbfe68656436d3568e473a65cef7675e0fd6b /src
parentb9c7dd3aa8b77d9812455437411de5c7640cce95 (diff)
Support older SQLite
Diffstat (limited to 'src')
-rw-r--r--src/sqlite3_db.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sqlite3_db.cc b/src/sqlite3_db.cc
index 0333bda..8dad591 100644
--- a/src/sqlite3_db.cc
+++ b/src/sqlite3_db.cc
@@ -534,8 +534,13 @@ public:
}
bool bind(unique_stmt& stmt, int index, const std::vector<char>& blob) {
+#if SQLITE_VERSION_NUMBER >= 3080700
return sqlite3_bind_blob64(stmt.get(), index, blob.data(),
blob.size(), SQLITE_STATIC) == SQLITE_OK;
+#else
+ return sqlite3_bind_blob(stmt.get(), index, blob.data(),
+ blob.size(), SQLITE_STATIC) == SQLITE_OK;
+#endif
}
bool bind(unique_stmt& stmt, const Condition& condition, int* index) {