mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Some small optimizations (#1424)
This commit is contained in:
parent
9934f3d931
commit
2403f79f55
3 changed files with 17 additions and 23 deletions
|
|
@ -10552,12 +10552,12 @@ impl<'a> Parser<'a> {
|
|||
return parser_err!("Unsupported statement REPLACE", self.peek_token().location);
|
||||
}
|
||||
|
||||
let insert = &mut self.parse_insert()?;
|
||||
if let Statement::Insert(Insert { replace_into, .. }) = insert {
|
||||
let mut insert = self.parse_insert()?;
|
||||
if let Statement::Insert(Insert { replace_into, .. }) = &mut insert {
|
||||
*replace_into = true;
|
||||
}
|
||||
|
||||
Ok(insert.clone())
|
||||
Ok(insert)
|
||||
}
|
||||
|
||||
/// Parse an INSERT statement, returning a `Box`ed SetExpr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue