diff options
author | louiz’ <louiz@louiz.org> | 2019-11-03 22:20:44 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2019-11-06 17:22:38 +0100 |
commit | cedf4412818fe15cdbd269a443c27d695106e69e (patch) | |
tree | 492adc4f6579d36d433be5160dee400c25fbae0f /src/database/query.hpp | |
parent | bd41bc8b0270b83e0efd331eb010fa4347a2ef67 (diff) | |
download | biboumi-cedf4412818fe15cdbd269a443c27d695106e69e.tar.gz biboumi-cedf4412818fe15cdbd269a443c27d695106e69e.tar.bz2 biboumi-cedf4412818fe15cdbd269a443c27d695106e69e.tar.xz biboumi-cedf4412818fe15cdbd269a443c27d695106e69e.zip |
Use the right int64 type for INTEGER rows in the db
Diffstat (limited to 'src/database/query.hpp')
-rw-r--r-- | src/database/query.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/query.hpp b/src/database/query.hpp index ae6e946..c89371f 100644 --- a/src/database/query.hpp +++ b/src/database/query.hpp @@ -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 |