Skip to content

Commit 902f978

Browse files
author
Pierre-Luc Gagné
committed
Force value initialization on construction for alias_order_entry
1 parent a227ec7 commit 902f978

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/include/ds_mysql/sql_dql.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,9 +3050,9 @@ concept GroupBySpec = requires {
30503050
// Resolved at build_sql() time: emits the alias name if set, otherwise
30513051
// falls back to the projection's sql_expr().
30523052
struct alias_order_entry {
3053-
std::size_t proj_index;
3053+
std::size_t proj_index{};
30543054
std::string fallback_expr; // sql_expr() of the projection
3055-
sort_order dir;
3055+
sort_order dir{sort_order::asc};
30563056
};
30573057

30583058
using order_by_item = std::variant<std::string, alias_order_entry>;

0 commit comments

Comments
 (0)