Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Jan 9, 2024
1 parent 89cf74b commit af469e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/parse_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl ParseResult {
}
}
}
},
}
NodeRef::ColumnRef(c) => {
if !has_filter_columns {
continue;
Expand Down
5 changes: 1 addition & 4 deletions tests/filter_column_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ fn it_recognizes_null_tests() {
fn it_finds_coalesce_argument_names() {
let result = parse("SELECT * FROM x WHERE x.y = COALESCE(z.a, z.b)").unwrap();
let filter_columns: Vec<(Option<String>, String)> = sorted(result.filter_columns).collect();
assert_eq!(
filter_columns,
[(Some("x".into()), "y".into()), (Some("z".into()), "a".into()), (Some("z".into()), "b".into())]
);
assert_eq!(filter_columns, [(Some("x".into()), "y".into()), (Some("z".into()), "a".into()), (Some("z".into()), "b".into())]);
}

#[test]
Expand Down

0 comments on commit af469e9

Please sign in to comment.