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 /src/libstat/learn_cache | |
parent | f4d576701c8fd2a8ea7512fa7dea70ae9f3dff2d (diff) | |
download | rspamd-fbf262b29c96394458592afb32bef24a3f8bc9ec.tar.gz rspamd-fbf262b29c96394458592afb32bef24a3f8bc9ec.zip |
Quote strings in pragmas.
Diffstat (limited to 'src/libstat/learn_cache')
-rw-r--r-- | src/libstat/learn_cache/sqlite3_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |