From fbf262b29c96394458592afb32bef24a3f8bc9ec Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 10 Jul 2015 00:36:34 +0100 Subject: Quote strings in pragmas. --- src/libstat/learn_cache/sqlite3_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstat/learn_cache') 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; -- cgit v1.2.3