diff options
Diffstat (limited to 'src/database/update_query.hpp')
-rw-r--r-- | src/database/update_query.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database/update_query.hpp b/src/database/update_query.hpp index 32befc0..a29ac3f 100644 --- a/src/database/update_query.hpp +++ b/src/database/update_query.hpp @@ -64,6 +64,10 @@ struct UpdateQuery: public Query template <typename... T> void execute(DatabaseEngine& db, const std::tuple<T...>& columns) { +#ifdef DEBUG_SQL_QUERIES + const auto timer = this->log_and_time(); +#endif + auto statement = db.prepare(this->body); this->bind_param(columns, *statement); this->bind_id(columns, *statement); |