@@ -3837,6 +3837,13 @@ is_select_from_vops_projection(Query* query, vops_var* var)
38373837}
38383838
38393839
3840+ #if defined(QTW_DONT_COPY_DEFAULT )&& (PG_VERSION_NUM < 140000 )
3841+ #define expression_tree_mutator_compat (node ,mutator ,context ) \
3842+ expression_tree_mutator((node), (mutator), (context), 0)
3843+ #else
3844+ #define expression_tree_mutator_compat (node ,mutator ,context ) \
3845+ expression_tree_mutator((node), (mutator), (context))
3846+ #endif
38403847
38413848static Node *
38423849vops_expression_tree_mutator (Node * node ,void * context )
@@ -3861,13 +3868,7 @@ vops_expression_tree_mutator(Node *node, void *context)
38613868return node ;
38623869}
38633870/* depth first traversal */
3864- node = expression_tree_mutator (node ,vops_expression_tree_mutator ,context
3865- #if PG_VERSION_NUM < 140000
3866- #ifdef QTW_DONT_COPY_DEFAULT
3867- ,0
3868- #endif
3869- #endif
3870- );
3871+ node = expression_tree_mutator_compat (node ,vops_expression_tree_mutator ,context );
38713872
38723873if (IsA (node ,BoolExpr ))
38733874{