From 57aabffff0befbf7928a0aaffbca7180cb03936c Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Tue, 10 Mar 2020 16:41:21 +0000 Subject: [PATCH] stats: add missing template required by clang-11 --- src/stats/model/sqlite-output.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/stats/model/sqlite-output.cc b/src/stats/model/sqlite-output.cc index dfb054a7a..4427798ba 100644 --- a/src/stats/model/sqlite-output.cc +++ b/src/stats/model/sqlite-output.cc @@ -173,6 +173,17 @@ SQLiteOutput::Bind (sqlite3_stmt *stmt, int pos, const long &value) const return false; } +template<> +bool +SQLiteOutput::Bind (sqlite3_stmt *stmt, int pos, const long long &value) const +{ + if (sqlite3_bind_int64 (stmt, pos, value) == SQLITE_OK) + { + return true; + } + return false; +} + template<> bool SQLiteOutput::Bind (sqlite3_stmt *stmt, int pos, const uint16_t &value) const