Fix compilation (many warnings, and a linkage error) with clang++

This commit is contained in:
louiz’
2017-06-14 10:46:44 +02:00
parent dac19da4c7
commit 2677ac42e8
7 changed files with 18 additions and 11 deletions
+2 -2
View File
@@ -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