mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Added a few reminders which expressions can be null as well
This commit is contained in:
parent
37a550a489
commit
556023f921
@ -52,6 +52,7 @@ namespace sqlpp
|
|||||||
return { t };
|
return { t };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#warning: verbatim_t always "can_be_null" (espcially since we cannot determine the required tables later on)
|
||||||
template<typename ValueType> // Csaba Csoma suggests: unsafe_sql instead of verbatim
|
template<typename ValueType> // Csaba Csoma suggests: unsafe_sql instead of verbatim
|
||||||
struct verbatim_t: public ValueType::template expression_operators<verbatim_t<ValueType>>,
|
struct verbatim_t: public ValueType::template expression_operators<verbatim_t<ValueType>>,
|
||||||
public alias_operators<verbatim_t<ValueType>>
|
public alias_operators<verbatim_t<ValueType>>
|
||||||
|
@ -54,6 +54,7 @@ namespace sqlpp
|
|||||||
template<typename Column>
|
template<typename Column>
|
||||||
struct select_traits<Column>
|
struct select_traits<Column>
|
||||||
{
|
{
|
||||||
|
#warning need to transport the "can be null information here"
|
||||||
using _traits = make_traits<value_type_of<Column>, tag::select_column_list, tag::return_value, tag::expression, tag::named_expression>;
|
using _traits = make_traits<value_type_of<Column>, tag::select_column_list, tag::return_value, tag::expression, tag::named_expression>;
|
||||||
using _name_t = typename Column::_name_t;
|
using _name_t = typename Column::_name_t;
|
||||||
};
|
};
|
||||||
|
@ -46,6 +46,7 @@ namespace sqlpp
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#warning a verbatim table is always an outer table
|
||||||
struct verbatim_table_t: public sqlpp::table_t<verbatim_table_t, detail::unusable_pseudo_column_t>
|
struct verbatim_table_t: public sqlpp::table_t<verbatim_table_t, detail::unusable_pseudo_column_t>
|
||||||
{
|
{
|
||||||
struct _name_t {};
|
struct _name_t {};
|
||||||
|
Loading…
Reference in New Issue
Block a user