From 0165ec834d796790d7b476ba315efde669643cac Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 5 Aug 2015 13:45:56 +0100 Subject: Fix inc learns and dec learns. --- src/libstat/backends/sqlite3_backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstat') diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c index 78cd02ad3..b87e05bde 100644 --- a/src/libstat/backends/sqlite3_backend.c +++ b/src/libstat/backends/sqlite3_backend.c @@ -175,7 +175,7 @@ static struct rspamd_sqlite3_prstmt prepared_stmts[RSPAMD_STAT_BACKEND_MAX] = .sql = "UPDATE languages SET learns=learns + 1 WHERE id=?1;" "UPDATE users SET learns=learns + 1 WHERE id=?2;", .stmt = NULL, - .args = "TT", + .args = "II", .result = SQLITE_DONE, .ret = "" }, @@ -184,7 +184,7 @@ static struct rspamd_sqlite3_prstmt prepared_stmts[RSPAMD_STAT_BACKEND_MAX] = .sql = "UPDATE languages SET learns=learns - 1 WHERE id=?1;" "UPDATE users SET learns=learns - 1 WHERE id=?2;", .stmt = NULL, - .args = "TT", + .args = "II", .result = SQLITE_DONE, .ret = "" }, -- cgit v1.2.3