@@ -72,8 +72,8 @@ pub use self::query::{
7272 TableAlias , TableAliasColumnDef , TableFactor , TableFunctionArgs , TableSample ,
7373 TableSampleBucket , TableSampleKind , TableSampleMethod , TableSampleModifier ,
7474 TableSampleQuantity , TableSampleSeed , TableSampleSeedModifier , TableSampleUnit , TableVersion ,
75- TableWithJoins , Top , TopQuantity , ValueTableMode , Values , WildcardAdditionalOptions , With ,
76- WithFill ,
75+ TableWithJoins , Top , TopQuantity , UpdateTableFromKind , ValueTableMode , Values ,
76+ WildcardAdditionalOptions , With , WithFill ,
7777} ;
7878
7979pub use self :: trigger:: {
@@ -2473,7 +2473,7 @@ pub enum Statement {
24732473 /// Column assignments
24742474 assignments : Vec < Assignment > ,
24752475 /// Table which provide value to be set
2476- from : Option < TableWithJoins > ,
2476+ from : Option < UpdateTableFromKind > ,
24772477 /// WHERE
24782478 selection : Option < Expr > ,
24792479 /// RETURNING
@@ -3745,10 +3745,13 @@ impl fmt::Display for Statement {
37453745 write ! ( f, "{or} " ) ?;
37463746 }
37473747 write ! ( f, "{table}" ) ?;
3748+ if let Some ( UpdateTableFromKind :: BeforeSet ( from) ) = from {
3749+ write ! ( f, " FROM {from}" ) ?;
3750+ }
37483751 if !assignments. is_empty ( ) {
37493752 write ! ( f, " SET {}" , display_comma_separated( assignments) ) ?;
37503753 }
3751- if let Some ( from) = from {
3754+ if let Some ( UpdateTableFromKind :: AfterSet ( from) ) = from {
37523755 write ! ( f, " FROM {from}" ) ?;
37533756 }
37543757 if let Some ( selection) = selection {
0 commit comments