aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 23:33:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 23:33:31 +0000
commit4edf143aaabd00f9500c94973a347829ef1741a7 (patch)
tree1103a35eab59985eab97322e19742fda719fdb27
parent1d1bf5c5961f15ee8f6926083a7bc30affc62831 (diff)
downloadrspamd-4edf143aaabd00f9500c94973a347829ef1741a7.tar.gz
rspamd-4edf143aaabd00f9500c94973a347829ef1741a7.zip
Add compatibility with old sqlite.
-rw-r--r--src/libserver/fuzzy_backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c
index 6f39561c6..aa011fc92 100644
--- a/src/libserver/fuzzy_backend.c
+++ b/src/libserver/fuzzy_backend.c
@@ -247,8 +247,8 @@ rspamd_fuzzy_backend_create_db (const gchar *path, gboolean add_index,
SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|SQLITE_OPEN_NOMUTEX, NULL))
!= SQLITE_OK) {
g_set_error (err, rspamd_fuzzy_backend_quark (),
- rc, "Cannot open sqlite db %s: %s",
- path, sqlite3_errstr (rc));
+ rc, "Cannot open sqlite db %s: %d",
+ path, rc);
return NULL;
}
@@ -482,7 +482,7 @@ rspamd_fuzzy_backend_close (struct rspamd_fuzzy_backend *backend)
if (backend != NULL) {
if (backend->db != NULL) {
rspamd_fuzzy_backend_close_stmts (backend);
- sqlite3_close_v2 (backend->db);
+ sqlite3_close (backend->db);
}
if (backend->path != NULL) {