0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Added a few reminders which expressions can be null as well

This commit is contained in:
rbock 2014-07-24 09:47:30 +02:00
parent 37a550a489
commit 556023f921
3 changed files with 3 additions and 0 deletions

View File

@ -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>>

View File

@ -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;
}; };

View File

@ -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 {};