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 */
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;