Skip to content

Commit

Permalink
Fix #74 (binding to aggregate with a single member)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Apr 24, 2024
1 parent 83287f3 commit 44608b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tao/pq/row.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ namespace tao::pq
static_assert( internal::dependent_false< T >, "tao::pq::result_traits<T>::size yields zero" );
TAO_PQ_UNREACHABLE; // LCOV_EXCL_LINE
}
else if constexpr( result_traits_size< T > == 1 ) {
else if constexpr( ( result_traits_size< T > == 1 ) && !is_aggregate_result< T > ) {
if constexpr( result_traits_has_null< T > ) {
if( is_null( column ) ) {
return result_traits< T >::null();
Expand Down

0 comments on commit 44608b9

Please sign in to comment.