From: Vsevolod Stakhov Date: Fri, 19 Dec 2014 23:33:31 +0000 (+0000) Subject: Add compatibility with old sqlite. X-Git-Tag: 0.8.0~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4edf143aaabd00f9500c94973a347829ef1741a7;p=rspamd.git Add compatibility with old sqlite. --- 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) {