removed unused parameter in handle_column function
This commit is contained in:
parent
d69c0a5769
commit
64f2d6899a
|
|
@ -36,7 +36,7 @@ sql::query_context query_builder::compile(const query_data &data,
|
|||
return {query_};
|
||||
}
|
||||
|
||||
std::string handle_column(sql::query_context &ctx, const sql::dialect *d, const query_data &data, const table_column &col) {
|
||||
std::string handle_column(sql::query_context &ctx, const sql::dialect *d, const table_column &col) {
|
||||
if (col.is_function()) {
|
||||
ctx.prototype.emplace_back(col.has_alias() ? col.alias() : col.canonical_name());
|
||||
ctx.prototype.back().change_type(utils::basic_type::Int32);
|
||||
|
|
@ -105,14 +105,14 @@ void query_builder::visit(internal::query_select_part &part) {
|
|||
result = dialect_->asterisk();
|
||||
} else if (const auto &columns = part.columns(); columns.size() < 2) {
|
||||
for (const auto &col: columns) {
|
||||
result.append(handle_column(query_, dialect_, *data_, col ));
|
||||
result.append(handle_column(query_, dialect_, col ));
|
||||
}
|
||||
} else {
|
||||
auto it = columns.begin();
|
||||
result.append(handle_column(query_, dialect_, *data_, *it++));
|
||||
result.append(handle_column(query_, dialect_, *it++));
|
||||
for (; it != columns.end(); ++it) {
|
||||
result.append(", ");
|
||||
result.append(handle_column(query_, dialect_, *data_, *it));
|
||||
result.append(handle_column(query_, dialect_, *it));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue