mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-21 03:01:49 +00:00
Support multiple tables in UPDATE FROM
clause (#1681)
This commit is contained in:
parent
74163b148e
commit
fdbe864d0d
5 changed files with 20 additions and 14 deletions
|
@ -3872,13 +3872,13 @@ impl fmt::Display for Statement {
|
|||
}
|
||||
write!(f, "{table}")?;
|
||||
if let Some(UpdateTableFromKind::BeforeSet(from)) = from {
|
||||
write!(f, " FROM {from}")?;
|
||||
write!(f, " FROM {}", display_comma_separated(from))?;
|
||||
}
|
||||
if !assignments.is_empty() {
|
||||
write!(f, " SET {}", display_comma_separated(assignments))?;
|
||||
}
|
||||
if let Some(UpdateTableFromKind::AfterSet(from)) = from {
|
||||
write!(f, " FROM {from}")?;
|
||||
write!(f, " FROM {}", display_comma_separated(from))?;
|
||||
}
|
||||
if let Some(selection) = selection {
|
||||
write!(f, " WHERE {selection}")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue