Use the right int64 type for INTEGER rows in the db

This commit is contained in:
louiz’
2019-11-06 17:22:38 +01:00
parent bd41bc8b02
commit cedf441281
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ void actual_bind(Statement& statement, const T& value, int index)
{
static_assert(std::is_integral<T>::value,
"Only a string, an optional-bool or an integer can be used.");
statement.bind_int64(index, static_cast<int>(value));
statement.bind_int64(index, static_cast<std::int64_t>(value));
}
#ifdef DEBUG_SQL_QUERIES