0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Transport can_be_null into select pseudo table

This commit is contained in:
rbock 2014-07-23 22:57:11 +02:00
parent 9c15b45ac4
commit d1e8a0153e

View File

@ -37,8 +37,11 @@ namespace sqlpp
{ {
using _name_t = typename NamedExpr::_name_t; using _name_t = typename NamedExpr::_name_t;
#warning take can_be_null from named expression... using _traits = make_traits<value_type_of<NamedExpr>,
using _traits = make_traits<value_type_of<NamedExpr>, tag::must_not_insert, tag::must_not_update>; tag::must_not_insert,
tag::must_not_update,
typename std::conditional<can_be_null_t<NamedExpr>::value, tag::can_be_null, void>::type
>;
}; };
template< template<