diff options
Diffstat (limited to 'src/database/count_query.hpp')
-rw-r--r-- | src/database/count_query.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/count_query.hpp b/src/database/count_query.hpp index 322ad1b..b7bbf51 100644 --- a/src/database/count_query.hpp +++ b/src/database/count_query.hpp @@ -15,10 +15,10 @@ struct CountQuery: public Query this->body += std::move(name); } - std::size_t execute(sqlite3* db) + int64_t execute(sqlite3* db) { auto statement = this->prepare(db); - std::size_t res = 0; + int64_t res = 0; if (sqlite3_step(statement.get()) == SQLITE_ROW) res = sqlite3_column_int64(statement.get(), 0); else |