diff --git a/include/sqlpp11/integral.h b/include/sqlpp11/integral.h index a90bc76d..a831ef99 100644 --- a/include/sqlpp11/integral.h +++ b/include/sqlpp11/integral.h @@ -42,12 +42,16 @@ namespace sqlpp // integral value type struct integral { +#warning why do I need base_value_type? Would it be sufficient to use _value_type instead? +#warning what is the difference between _is_value and _is_expression? using _base_value_type = integral; using _is_numeric = std::true_type; using _is_integral = std::true_type; using _is_value = std::true_type; using _is_expression = std::true_type; using _cpp_value_type = int64_t; + + using _value_type = integral; struct _parameter_t { diff --git a/include/sqlpp11/parameter.h b/include/sqlpp11/parameter.h index c4f183fc..aa75b70d 100644 --- a/include/sqlpp11/parameter.h +++ b/include/sqlpp11/parameter.h @@ -28,6 +28,7 @@ #define SQLPP_PARAMETER_H #include +#include #include namespace sqlpp @@ -81,7 +82,7 @@ namespace sqlpp auto parameter(const ValueType&, const AliasProvider&) -> parameter_t { - static_assert(is_expression_t::value, "first argument is not an expression"); + static_assert(is_value_t::value, "first argument is not a value type"); static_assert(is_alias_provider_t::value, "second argument is not an alias provider"); return {}; }