From 556023f9218030d735c1398179f550a27ae6a6de Mon Sep 17 00:00:00 2001 From: rbock Date: Thu, 24 Jul 2014 09:47:30 +0200 Subject: [PATCH] Added a few reminders which expressions can be null as well --- include/sqlpp11/functions.h | 1 + include/sqlpp11/select_column_list.h | 1 + include/sqlpp11/verbatim_table.h | 1 + 3 files changed, 3 insertions(+) diff --git a/include/sqlpp11/functions.h b/include/sqlpp11/functions.h index 65c05a2e..51791ccb 100644 --- a/include/sqlpp11/functions.h +++ b/include/sqlpp11/functions.h @@ -52,6 +52,7 @@ namespace sqlpp return { t }; } +#warning: verbatim_t always "can_be_null" (espcially since we cannot determine the required tables later on) template // Csaba Csoma suggests: unsafe_sql instead of verbatim struct verbatim_t: public ValueType::template expression_operators>, public alias_operators> diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index 0aab60ff..398cc1e5 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -54,6 +54,7 @@ namespace sqlpp template struct select_traits { +#warning need to transport the "can be null information here" using _traits = make_traits, tag::select_column_list, tag::return_value, tag::expression, tag::named_expression>; using _name_t = typename Column::_name_t; }; diff --git a/include/sqlpp11/verbatim_table.h b/include/sqlpp11/verbatim_table.h index 2a4ae805..0c7f6576 100644 --- a/include/sqlpp11/verbatim_table.h +++ b/include/sqlpp11/verbatim_table.h @@ -46,6 +46,7 @@ namespace sqlpp }; } +#warning a verbatim table is always an outer table struct verbatim_table_t: public sqlpp::table_t { struct _name_t {};