Skip to content

Commit

Permalink
remove mut
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 committed May 14, 2022
1 parent 30e9c4d commit bff4bfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion query/src/sql/planner/binder/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl<'a> Binder {
/// in this function.
pub(super) async fn normalize_select_list(
&mut self,
input_context: &BindContext,
select_list: &[SelectTarget<'a>],
input_context: &mut BindContext,
) -> Result<BindContext> {
let mut output_context = BindContext::new();
for select_target in select_list {
Expand Down
2 changes: 1 addition & 1 deletion query/src/sql/planner/binder/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<'a> Binder {

// Output of current `SELECT` statement.
let mut output_context = self
.normalize_select_list(&stmt.select_list, &mut from_context)
.normalize_select_list(&from_context, &stmt.select_list)
.await?;

let agg_info = self.analyze_aggregate(&output_context)?;
Expand Down

0 comments on commit bff4bfe

Please sign in to comment.