From eef974478c0aced532e98fb411a70d671d756590 Mon Sep 17 00:00:00 2001 From: rbock Date: Tue, 22 Apr 2014 22:39:25 +0200 Subject: [PATCH] Fixed a few missing types --- include/sqlpp11/avg.h | 2 ++ include/sqlpp11/count.h | 2 ++ include/sqlpp11/exists.h | 2 ++ include/sqlpp11/max.h | 2 ++ include/sqlpp11/min.h | 2 ++ include/sqlpp11/vendor/select_column_list.h | 5 +++++ 6 files changed, 15 insertions(+) diff --git a/include/sqlpp11/avg.h b/include/sqlpp11/avg.h index f763a30f..dcf821b7 100644 --- a/include/sqlpp11/avg.h +++ b/include/sqlpp11/avg.h @@ -44,6 +44,8 @@ namespace sqlpp using _is_named_expression = std::true_type; }; + using _table_set = typename Expr::_table_set; + struct _name_t { static constexpr const char* _get_name() { return "AVG"; } diff --git a/include/sqlpp11/count.h b/include/sqlpp11/count.h index 3e6c10ce..dc54437f 100644 --- a/include/sqlpp11/count.h +++ b/include/sqlpp11/count.h @@ -45,6 +45,8 @@ namespace sqlpp using _is_named_expression = std::true_type; }; + using _table_set = typename Expr::_table_set; + struct _name_t { static constexpr const char* _get_name() { return "COUNT"; } diff --git a/include/sqlpp11/exists.h b/include/sqlpp11/exists.h index 899a460b..ac69461e 100644 --- a/include/sqlpp11/exists.h +++ b/include/sqlpp11/exists.h @@ -43,6 +43,8 @@ namespace sqlpp using _is_named_expression = std::true_type; }; + using _table_set = typename Select::_table_set; + struct _name_t { static constexpr const char* _get_name() { return "EXISTS"; } diff --git a/include/sqlpp11/max.h b/include/sqlpp11/max.h index ecba9d94..a86c4b22 100644 --- a/include/sqlpp11/max.h +++ b/include/sqlpp11/max.h @@ -43,6 +43,8 @@ namespace sqlpp using _is_named_expression = std::true_type; }; + using _table_set = typename Expr::_table_set; + struct _name_t { static constexpr const char* _get_name() { return "MAX"; } diff --git a/include/sqlpp11/min.h b/include/sqlpp11/min.h index ee7f4068..c7d9f9e0 100644 --- a/include/sqlpp11/min.h +++ b/include/sqlpp11/min.h @@ -43,6 +43,8 @@ namespace sqlpp using _is_named_expression = std::true_type; }; + using _table_set = typename Expr::_table_set; + struct _name_t { static constexpr const char* _get_name() { return "MIN"; } diff --git a/include/sqlpp11/vendor/select_column_list.h b/include/sqlpp11/vendor/select_column_list.h index 2c3d6042..52a48045 100644 --- a/include/sqlpp11/vendor/select_column_list.h +++ b/include/sqlpp11/vendor/select_column_list.h @@ -183,6 +183,11 @@ namespace sqlpp select_column_list_t& operator=(select_column_list_t&&) = default; ~select_column_list_t() = default; + static constexpr size_t static_size() + { + return size::value; + } + template struct _methods_t {