Fixes some indentation in ruleutils_14.c

Relevant PG commit:

fa27dd40d5c5f56a1ee837a75c97549e992e32a4
pg14_support_after_rebase
Halil Ozan Akgul 2021-08-16 10:52:55 +03:00 committed by Sait Talha Nisanci
parent d7daea1533
commit c33d805494
1 changed files with 3 additions and 3 deletions

View File

@ -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, '(');