summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-06-14 17:23:53 +0200
committerlouiz’ <louiz@louiz.org>2017-06-14 17:25:15 +0200
commit34ed2cc1a97484942ba316ed604b75c8506f355f (patch)
tree5bde69c4769b11542fbe031c8ab0cd7450b5ef4c /src/database
parent5834dd53f32ff89f5818681a93e416b0a48b6254 (diff)
downloadbiboumi-34ed2cc1a97484942ba316ed604b75c8506f355f.tar.gz
biboumi-34ed2cc1a97484942ba316ed604b75c8506f355f.tar.bz2
biboumi-34ed2cc1a97484942ba316ed604b75c8506f355f.tar.xz
biboumi-34ed2cc1a97484942ba316ed604b75c8506f355f.zip
Explicitely declare the add_param<Id> specialization
Diffstat (limited to 'src/database')
-rw-r--r--src/database/query.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database/query.hpp b/src/database/query.hpp
index b77a421..42eeda2 100644
--- a/src/database/query.hpp
+++ b/src/database/query.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <database/statement.hpp>
+#include <database/column.hpp>
#include <logger/logger.hpp>
@@ -38,6 +39,8 @@ void add_param(Query& query, const ColumnType& column)
{
actual_add_param(query, column.value);
}
+template <>
+void add_param<Id>(Query& query, const Id& column);
template <typename T>
void actual_add_param(Query& query, const T& val)