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:
parent
226df5606a
commit
5c7facfdd4
@ -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
|
||||
|
@ -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>
|
||||
{
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user