diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-18 16:52:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-18 16:52:34 +0000 |
commit | 9afc6861062565e91229a8bb3a15f7dc97303c99 (patch) | |
tree | 7f02fcf2c0f3ed2a2c5c2e97cbec8a338f5fb9ce /src/libutil | |
parent | e626098891cc44d4890f186d96aa7a99e4acd124 (diff) | |
download | rspamd-9afc6861062565e91229a8bb3a15f7dc97303c99.tar.gz rspamd-9afc6861062565e91229a8bb3a15f7dc97303c99.zip |
Clear bindings for sqlite3 statements
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/sqlite_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c index fd7287c7f..e1e6f7f76 100644 --- a/src/libutil/sqlite_utils.c +++ b/src/libutil/sqlite_utils.c @@ -172,6 +172,7 @@ rspamd_sqlite3_run_prstmt (rspamd_mempool_t *pool, sqlite3 *db, GArray *stmts, } if (!(nst->flags & RSPAMD_SQLITE3_STMT_MULTIPLE)) { + sqlite3_clear_bindings (stmt); sqlite3_reset (stmt); } @@ -183,6 +184,7 @@ rspamd_sqlite3_run_prstmt (rspamd_mempool_t *pool, sqlite3 *db, GArray *stmts, } if (!(nst->flags & RSPAMD_SQLITE3_STMT_MULTIPLE)) { + sqlite3_clear_bindings (stmt); sqlite3_reset (stmt); } |