@@ -977,7 +977,7 @@ impl From<protobuf::GroupingSet> for GroupingSet {
977977impl From < protobuf:: MergeWhenClause > for MergeWhenClause {
978978 fn from ( pb : protobuf:: MergeWhenClause ) -> Self {
979979 MergeWhenClause {
980- matched : pb. matched ,
980+ match_kind : pb. match_kind . into ( ) ,
981981 command_type : pb. command_type . into ( ) ,
982982 override_ : pb. r#override . into ( ) ,
983983 condition : pb. condition . map ( |n| n. into ( ) ) ,
@@ -1041,6 +1041,7 @@ impl From<protobuf::Constraint> for Constraint {
10411041 raw_expr : pb. raw_expr . map ( |n| n. into ( ) ) ,
10421042 cooked_expr : pb. cooked_expr ,
10431043 generated_when : pb. generated_when ,
1044+ inhcount : pb. inhcount ,
10441045 nulls_not_distinct : pb. nulls_not_distinct ,
10451046 keys : pb. keys . into_iter ( ) . map ( |n| n. into ( ) ) . collect ( ) ,
10461047 including : pb. including . into_iter ( ) . map ( |n| n. into ( ) ) . collect ( ) ,
@@ -1634,6 +1635,17 @@ impl From<i32> for CmdType {
16341635 }
16351636}
16361637
1638+ impl From < i32 > for MergeMatchKind {
1639+ fn from ( v : i32 ) -> Self {
1640+ match v {
1641+ 1 => MergeMatchKind :: Matched ,
1642+ 2 => MergeMatchKind :: NotMatchedBySource ,
1643+ 3 => MergeMatchKind :: NotMatchedByTarget ,
1644+ _ => MergeMatchKind :: Undefined ,
1645+ }
1646+ }
1647+ }
1648+
16371649impl From < i32 > for TransactionStmtKind {
16381650 fn from ( v : i32 ) -> Self {
16391651 match v {
0 commit comments