mirror of https://github.com/citusdata/citus.git
Fixes some indentation in ruleutils_14.c
Relevant PG commit: fa27dd40d5c5f56a1ee837a75c97549e992e32a4pg14_support_after_rebase
parent
d7daea1533
commit
c33d805494
|
@ -2667,8 +2667,8 @@ get_rule_sortgroupclause(Index ref, List *tlist, bool force_colno,
|
|||
*/
|
||||
bool need_paren = (PRETTY_PAREN(context)
|
||||
|| IsA(expr, FuncExpr)
|
||||
||IsA(expr, Aggref)
|
||||
||IsA(expr, WindowFunc));
|
||||
|| IsA(expr, Aggref)
|
||||
|| IsA(expr, WindowFunc));
|
||||
|
||||
if (need_paren)
|
||||
appendStringInfoChar(context->buf, '(');
|
||||
|
@ -7321,7 +7321,7 @@ get_from_clause_item(Node *jtnode, Query *query, deparse_context *context)
|
|||
|
||||
need_paren_on_right = PRETTY_PAREN(context) &&
|
||||
!IsA(j->rarg, RangeTblRef) &&
|
||||
!(IsA(j->rarg, JoinExpr) &&((JoinExpr *) j->rarg)->alias != NULL);
|
||||
!(IsA(j->rarg, JoinExpr) && ((JoinExpr *) j->rarg)->alias != NULL);
|
||||
|
||||
if (!PRETTY_PAREN(context) || j->alias != NULL)
|
||||
appendStringInfoChar(buf, '(');
|
||||
|
|
Loading…
Reference in New Issue