Skip to content

Commit c90ff3d

Browse files
_s -> _stmt
1 parent b31f00e commit c90ff3d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

include/sqlgen/transpilation/to_union.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
#include "../dynamic/SelectFrom.hpp"
1010
#include "../dynamic/Union.hpp"
1111
#include "table_tuple_t.hpp"
12-
#include "to_select_from.hpp"
12+
#include "to_stmtelect_from.hpp"
1313
#include "value_t.hpp"
1414

1515
namespace sqlgen::transpilation {
1616

1717
template <class ContainerType, class... SelectTs>
18-
dynamic::Union to_union(const rfl::Tuple<SelectTs...>& _stmts,
18+
dynamic::Union to_union(const rfl::Tuple<SelectTs...>& _stmttmts,
1919
const bool _all) noexcept {
2020
using ValueType = value_t<ContainerType>;
2121
using NamedTupleType = rfl::named_tuple_t<ValueType>;
2222

2323
const auto columns = NamedTupleType::Names::names();
2424

2525
const auto selects = rfl::apply(
26-
[](const auto... _s) {
26+
[](const auto... _stmt) {
2727
return Ref<std::vector<dynamic::SelectFrom>>::make(
2828
std::vector<dynamic::SelectFrom>({to_select_from<
2929
table_tuple_t<typename SelectTs::TableOrQueryType,
@@ -33,8 +33,9 @@ dynamic::Union to_union(const rfl::Tuple<SelectTs...>& _stmts,
3333
typename SelectTs::TableOrQueryType,
3434
typename SelectTs::JoinsType, typename SelectTs::WhereType,
3535
typename SelectTs::GroupByType, typename SelectTs::OrderByType,
36-
typename SelectTs::LimitType>(_s.fields_, _s.from_, _s.joins_,
37-
_s.where_, _s.limit_)...}));
36+
typename SelectTs::LimitType>(_stmt.fields_, _stmt.from_,
37+
_stmt.joins_, _stmt.where_,
38+
_stmt.limit_)...}));
3839
},
3940
_stmts);
4041

0 commit comments

Comments
 (0)