@@ -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:: {
@@ -2479,7 +2479,7 @@ pub enum Statement {
24792479 /// Column assignments
24802480 assignments : Vec < Assignment > ,
24812481 /// Table which provide value to be set
2482- from : Option < TableWithJoins > ,
2482+ from : Option < UpdateTableFromKind > ,
24832483 /// WHERE
24842484 selection : Option < Expr > ,
24852485 /// RETURNING
@@ -3751,10 +3751,13 @@ impl fmt::Display for Statement {
37513751 write ! ( f, "{or} " ) ?;
37523752 }
37533753 write ! ( f, "{table}" ) ?;
3754+ if let Some ( UpdateTableFromKind :: BeforeSet ( from) ) = from {
3755+ write ! ( f, " FROM {from}" ) ?;
3756+ }
37543757 if !assignments. is_empty ( ) {
37553758 write ! ( f, " SET {}" , display_comma_separated( assignments) ) ?;
37563759 }
3757- if let Some ( from) = from {
3760+ if let Some ( UpdateTableFromKind :: AfterSet ( from) ) = from {
37583761 write ! ( f, " FROM {from}" ) ?;
37593762 }
37603763 if let Some ( selection) = selection {
0 commit comments