diff --git a/include/sqlpp11/select_pseudo_table.h b/include/sqlpp11/select_pseudo_table.h index 76286742..06a2ebf5 100644 --- a/include/sqlpp11/select_pseudo_table.h +++ b/include/sqlpp11/select_pseudo_table.h @@ -37,8 +37,11 @@ namespace sqlpp { using _name_t = typename NamedExpr::_name_t; -#warning take can_be_null from named expression... - using _traits = make_traits, tag::must_not_insert, tag::must_not_update>; + using _traits = make_traits, + tag::must_not_insert, + tag::must_not_update, + typename std::conditional::value, tag::can_be_null, void>::type + >; }; template<