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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/database/query.cpp b/src/database/query.cpp
index fb8c055..e6cf072 100644
--- a/src/database/query.cpp
+++ b/src/database/query.cpp
@@ -9,3 +9,13 @@ void actual_add_param(Query& query, const std::string& val)
{
query.params.push_back(val);
}
+
+void actual_add_param(Query& query, const OptionalBool& val)
+{
+ if (!val.is_set)
+ query.params.push_back("0");
+ else if (val.value)
+ query.params.push_back("1");
+ else
+ query.params.push_back("-1");
+} \ No newline at end of file