Skip to content

Commit cf70709

Browse files
committed
Format the bare LIMIT alias test
1 parent b73dee2 commit cf70709

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎crates/sqlquack-syntax/tests/parser/test_fixes.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,8 @@ fn given_a_bare_snowflake_limit_or_offset_when_parsing_then_it_is_an_alias() {
17641764
expected_value: json!("LIMIT"),
17651765
},
17661766
StatementTestCase {
1767-
description: "a bare LIMIT names the FROM item, which LIMIT.a reads (recorded as accepted)",
1767+
description:
1768+
"a bare LIMIT names the FROM item, which LIMIT.a reads (recorded as accepted)",
17681769
sql: "SELECT LIMIT.a FROM ( SELECT 1 AS a ) LIMIT ;",
17691770
pointer: "/0/select/expressions/0/column/table/name",
17701771
expected_value: json!("LIMIT"),

‎crates/sqlquack/src/analysis/tests/test_everyday_corpus.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ fn given_everyday_snowflake_queries_when_checked_and_converted_then_each_keeps_i
1212
expected_rates: "288 of 436 strict, 357 of 436 repository",
1313
// SQL Snowflake rejects (snowflake-receipts.json) that SQLQuack neither fails to parse nor
1414
// flags in its checks; each should become a parse or check error.
15-
expected_rejections_not_caught: vec![
16-
"SELECT order_id FROM orders WHERE ordered_at > 5",
17-
],
15+
expected_rejections_not_caught: vec!["SELECT order_id FROM orders WHERE ordered_at > 5"],
1816
}];
1917

2018
for test_case in test_cases {

0 commit comments

Comments
 (0)