diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-27 17:11:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-27 17:11:12 +0100 |
commit | 93c21c9d66c5e4dd356dfa2c991448d53d81fb83 (patch) | |
tree | 68834053df00f591a005cf959360282e01598b42 /src/libstat/backends/sqlite3_backend.c | |
parent | c2d505b2e459acf34fb4df1f9ed9f331571afa35 (diff) | |
download | rspamd-93c21c9d66c5e4dd356dfa2c991448d53d81fb83.tar.gz rspamd-93c21c9d66c5e4dd356dfa2c991448d53d81fb83.zip |
Some more fixes to sqlite backend.
Diffstat (limited to 'src/libstat/backends/sqlite3_backend.c')
-rw-r--r-- | src/libstat/backends/sqlite3_backend.c | 6 |
1 files changed, 3 insertions, 3 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 = "" }, { |