diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-10 00:36:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-10 00:36:34 +0100 |
commit | fbf262b29c96394458592afb32bef24a3f8bc9ec (patch) | |
tree | b50d8a838882e1f43ccd2f0c1caec9152f3b97f7 | |
parent | f4d576701c8fd2a8ea7512fa7dea70ae9f3dff2d (diff) | |
download | rspamd-fbf262b29c96394458592afb32bef24a3f8bc9ec.tar.gz rspamd-fbf262b29c96394458592afb32bef24a3f8bc9ec.zip |
Quote strings in pragmas.
-rw-r--r-- | src/libserver/fuzzy_backend.c | 4 | ||||
-rw-r--r-- | src/libstat/learn_cache/sqlite3_cache.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 24a9b2412..7cd4faa91 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -468,8 +468,8 @@ rspamd_fuzzy_backend_open (const gchar *path, GError **err) gchar *dir, header[4]; gint fd, r; struct rspamd_fuzzy_backend *res; - static const char sqlite_wal[] = "PRAGMA journal_mode=WAL;", - fallback_journal[] = "PRAGMA journal_mode=OFF;"; + static const char sqlite_wal[] = "PRAGMA journal_mode=\"wal\";", + fallback_journal[] = "PRAGMA journal_mode=\"off\";"; int rc; /* First of all we check path for existence */ diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c index a9e74edbb..0cfea0a83 100644 --- a/src/libstat/learn_cache/sqlite3_cache.c +++ b/src/libstat/learn_cache/sqlite3_cache.c @@ -54,8 +54,8 @@ rspamd_stat_cache_sqlite3_init(struct rspamd_stat_ctx *ctx, struct rspamd_stat_sqlite3_ctx *new = NULL; struct rspamd_classifier_config *clf; const ucl_object_t *obj, *elt; - static const char sqlite_wal[] = "PRAGMA journal_mode=WAL;", - fallback_journal[] = "PRAGMA journal_mode=OFF;"; + static const char sqlite_wal[] = "PRAGMA journal_mode=\"wal\";", + fallback_journal[] = "PRAGMA journal_mode=\"off\";"; GList *cur; gchar dbpath[PATH_MAX]; sqlite3 *sqlite; |