mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 10:47:22 +00:00
Fix new clippy errors (#412)
This commit is contained in:
parent
fbc1d9659b
commit
5cbf1e797a
4 changed files with 14 additions and 5 deletions
|
@ -343,6 +343,15 @@ fn parse_select_distinct_two_fields() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_select_distinct_missing_paren() {
|
||||
let result = parse_sql_statements("SELECT DISTINCT (name, id FROM customer");
|
||||
assert_eq!(
|
||||
ParserError::ParserError("Expected ), found: FROM".to_string()),
|
||||
result.unwrap_err(),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_select_all() {
|
||||
one_statement_parses_to("SELECT ALL name FROM customer", "SELECT name FROM customer");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue