diff options
-rw-r--r-- | src/libstat/backends/sqlite3_backend.c | 6 | ||||
-rw-r--r-- | test/functional/configs/stats.conf | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c index 617dd99bb..c9c78df8f 100644 --- a/src/libstat/backends/sqlite3_backend.c +++ b/src/libstat/backends/sqlite3_backend.c @@ -203,7 +203,7 @@ static struct rspamd_sqlite3_prstmt prepared_stmts[RSPAMD_STAT_BACKEND_MAX] = .sql = "INSERT INTO users (name, learns) VALUES (?1, 0);", .stmt = NULL, .args = "T", - .result = SQLITE_ROW, + .result = SQLITE_DONE, .ret = "L" }, { @@ -211,7 +211,7 @@ static struct rspamd_sqlite3_prstmt prepared_stmts[RSPAMD_STAT_BACKEND_MAX] = .sql = "INSERT INTO languages (name, learns) VALUES (?1, 0);", .stmt = NULL, .args = "T", - .result = SQLITE_ROW, + .result = SQLITE_DONE, .ret = "L" }, { @@ -219,7 +219,7 @@ static struct rspamd_sqlite3_prstmt prepared_stmts[RSPAMD_STAT_BACKEND_MAX] = .sql = "INSERT INTO tokenizer(data) VALUES (?1);", .stmt = NULL, .args = "B", - .result = SQLITE_ROW, + .result = SQLITE_DONE, .ret = "" }, { diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf index 4ae576b6e..c03c8b52e 100644 --- a/test/functional/configs/stats.conf +++ b/test/functional/configs/stats.conf @@ -42,17 +42,16 @@ classifier { hash = ${STATS_HASH} key = ${STATS_KEY} } + backend = ${STATS_BACKEND} statfile { symbol = BAYES_SPAM; path = ${STATSDIR}/rspamd-bats-bayes.spam; size = 1M; - backend = ${STATS_BACKEND} } statfile { symbol = BAYES_HAM; path = ${STATSDIR}/rspamd-bats-bayes.ham; size = 1M; - backend = ${STATS_BACKEND} } cache { |