summaryrefslogtreecommitdiff
path: root/src/database/query.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/query.cpp')
-rw-r--r--src/database/query.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/database/query.cpp b/src/database/query.cpp
index d27dc59..9611c97 100644
--- a/src/database/query.cpp
+++ b/src/database/query.cpp
@@ -21,6 +21,15 @@ void actual_bind(Statement& statement, const OptionalBool& value, int index)
statement.bind_int64(index, -1);
}
+void actual_bind(Statement& statement, const std::size_t value, int index)
+{
+ actual_bind(statement, static_cast<std::int64_t>(value), index);
+}
+
+void actual_bind(Statement& statement, const int value, int index)
+{
+ actual_bind(statement, static_cast<std::int64_t>(value), index);
+}
void actual_add_param(Query& query, const std::string& val)
{