mirror of https://github.com/citusdata/citus.git
Fixes some indentation in ruleutils_14.c
Relevant PG commit: fa27dd40d5c5f56a1ee837a75c97549e992e32a4talha_pg14_support
parent
812dd1be1c
commit
21f15d8028
|
@ -2667,8 +2667,8 @@ get_rule_sortgroupclause(Index ref, List *tlist, bool force_colno,
|
||||||
*/
|
*/
|
||||||
bool need_paren = (PRETTY_PAREN(context)
|
bool need_paren = (PRETTY_PAREN(context)
|
||||||
|| IsA(expr, FuncExpr)
|
|| IsA(expr, FuncExpr)
|
||||||
||IsA(expr, Aggref)
|
|| IsA(expr, Aggref)
|
||||||
||IsA(expr, WindowFunc));
|
|| IsA(expr, WindowFunc));
|
||||||
|
|
||||||
if (need_paren)
|
if (need_paren)
|
||||||
appendStringInfoChar(context->buf, '(');
|
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) &&
|
need_paren_on_right = PRETTY_PAREN(context) &&
|
||||||
!IsA(j->rarg, RangeTblRef) &&
|
!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)
|
if (!PRETTY_PAREN(context) || j->alias != NULL)
|
||||||
appendStringInfoChar(buf, '(');
|
appendStringInfoChar(buf, '(');
|
||||||
|
|
Loading…
Reference in New Issue