mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Merge 38642063f7 into 355a3bfd90
This commit is contained in:
commit
2d19bb755b
2 changed files with 9 additions and 1 deletions
|
|
@ -12024,7 +12024,7 @@ impl<'a> Parser<'a> {
|
|||
Token::Word(w) => {
|
||||
idents.push(w.clone().into_ident(self.peek_token_ref().span));
|
||||
}
|
||||
Token::EOF | Token::Eq => break,
|
||||
Token::EOF | Token::Eq | Token::SemiColon => break,
|
||||
_ => {}
|
||||
}
|
||||
self.advance_token();
|
||||
|
|
|
|||
|
|
@ -7914,3 +7914,11 @@ fn parse_create_operator_class() {
|
|||
)
|
||||
.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_identifiers_semicolon_handling() {
|
||||
let statement = "SHOW search_path; SELECT 1";
|
||||
pg_and_generic().statements_parse_to(statement, statement);
|
||||
let statement = "SHOW search_path; SHOW ALL; SHOW ALL";
|
||||
pg_and_generic().statements_parse_to(statement, statement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue