From a00998f7da5ff98276888eda0d23a71922f1c695 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 5 Oct 2015 20:22:40 +0300 Subject: [PATCH] Do not use sqlite3_trace as it is unreliable --- pdns/ssqlite3.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pdns/ssqlite3.cc b/pdns/ssqlite3.cc index b647720366..db8062aa2d 100644 --- a/pdns/ssqlite3.cc +++ b/pdns/ssqlite3.cc @@ -31,10 +31,6 @@ int pdns_sqlite3_clear_bindings(sqlite3_stmt *pStmt){ return rc; } -void my_trace(void *foo, const char *sql) { - L<0) { sqlite3_bind_null(d_stmt, idx); }; return this; } SSqlStatement* execute() { + if (d_dolog) + L<inTransaction(); // try only once while(attempts < 2 && (d_rc = sqlite3_step(d_stmt)) == SQLITE_BUSY) attempts++; @@ -155,8 +153,6 @@ SSQLite3::SSQLite3( const std::string & database, bool creat ) void SSQLite3::setLog(bool state) { - if (state) - sqlite3_trace(m_pDB, my_trace, NULL); m_dolog=state; } -- 2.47.2