diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-05 13:45:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-05 13:45:56 +0100 |
commit | 0165ec834d796790d7b476ba315efde669643cac (patch) | |
tree | 597a27db7ef6cd7cb378d3c25326bd067aa92fe8 /src/libstat | |
parent | 95d140298a867bdf037f6657e3c92125fcaf1b0a (diff) | |
download | rspamd-0165ec834d796790d7b476ba315efde669643cac.tar.gz rspamd-0165ec834d796790d7b476ba315efde669643cac.zip |
Fix inc learns and dec learns.
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/backends/sqlite3_backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "" }, |