0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Remove deferral in select_column_list

Wow, finally!
This commit is contained in:
Roland Bock 2024-10-27 12:44:13 +01:00
parent 226df5606a
commit 5c7facfdd4
2 changed files with 2 additions and 12 deletions

View File

@ -146,18 +146,8 @@ namespace sqlpp
return static_cast<const _statement_t&>(*this);
}
template <typename Db, typename Column>
struct _deferred_field_t
{
using type = make_field_spec_t<_statement_t, Column>;
};
template <typename Db, typename Column>
using _field_t = typename _deferred_field_t<Db, Column>::type;
#warning: This should not require the Db parameter for deferral, see select_as.
template <typename Db>
using _result_row_t = result_row_t<Db, _field_t<Db, Columns>...>;
using _result_row_t = result_row_t<Db, make_field_spec_t<_statement_t, Columns>...>;
template <typename NameTagProvider>
auto as(const NameTagProvider&) const

View File

@ -76,7 +76,7 @@ namespace sqlpp
struct is_aggregate_expression
: public std::integral_constant<bool,
is_aggregate_function<T>::value or
KnownAggregateColumns::template contains<T>()>
KnownAggregateColumns::template contains<T>::value>
{
};