Skip to content

Commit 0814850

Browse files
committed
Code review comments
1 parent 5c96e56 commit 0814850

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/parser/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19682,11 +19682,4 @@ mod tests {
1968219682
assert!(Parser::parse_sql(&GenericDialect, &sql).is_err());
1968319683
}
1968419684
}
19685-
19686-
#[test]
19687-
fn test_key_value_options_trailing_semicolon() {
19688-
let sql = "CREATE USER u1 option1 = 'value1' option2 = 'value2';";
19689-
let ast = Parser::parse_sql(&GenericDialect, sql);
19690-
assert!(ast.is_ok());
19691-
}
1969219685
}

tests/sqlparser_common.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18052,3 +18052,11 @@ fn parse_overlap_as_bool_and() {
1805218052
let dialects = all_dialects_where(|d| d.supports_double_ampersand_operator());
1805318053
dialects.one_statement_parses_to("SELECT x && y", "SELECT x AND y");
1805418054
}
18055+
18056+
#[test]
18057+
fn test_parse_key_value_options_trailing_semicolon() {
18058+
one_statement_parses_to(
18059+
"CREATE USER u1 option1='value1' option2='value2';",
18060+
"CREATE USER u1 option1='value1' option2='value2'",
18061+
);
18062+
}

0 commit comments

Comments
 (0)