mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-19 05:30:19 +00:00
MERGE INTO semicolon handling (#508)
* SGA-4181 MERGE INTO semicolon handling * fixed lint warning Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
This commit is contained in:
parent
09bdb6bb8a
commit
cd66034a4a
2 changed files with 16 additions and 1 deletions
|
@ -4250,7 +4250,7 @@ impl<'a> Parser<'a> {
|
|||
pub fn parse_merge_clauses(&mut self) -> Result<Vec<MergeClause>, ParserError> {
|
||||
let mut clauses: Vec<MergeClause> = vec![];
|
||||
loop {
|
||||
if self.peek_token() == Token::EOF {
|
||||
if self.peek_token() == Token::EOF || self.peek_token() == Token::SemiColon {
|
||||
break;
|
||||
}
|
||||
self.expect_keyword(Keyword::WHEN)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue