mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Run pgindent on 9.2 source tree in preparation for first 9.3
commit-fest.
This commit is contained in:
@ -59,7 +59,7 @@ exprType(const Node *expr)
|
||||
break;
|
||||
case T_ArrayRef:
|
||||
{
|
||||
const ArrayRef *arrayref = (const ArrayRef *) expr;
|
||||
const ArrayRef *arrayref = (const ArrayRef *) expr;
|
||||
|
||||
/* slice and/or store operations yield the array type */
|
||||
if (arrayref->reflowerindexpr || arrayref->refassgnexpr)
|
||||
@ -91,7 +91,7 @@ exprType(const Node *expr)
|
||||
break;
|
||||
case T_SubLink:
|
||||
{
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
|
||||
if (sublink->subLinkType == EXPR_SUBLINK ||
|
||||
sublink->subLinkType == ARRAY_SUBLINK)
|
||||
@ -125,7 +125,7 @@ exprType(const Node *expr)
|
||||
break;
|
||||
case T_SubPlan:
|
||||
{
|
||||
const SubPlan *subplan = (const SubPlan *) expr;
|
||||
const SubPlan *subplan = (const SubPlan *) expr;
|
||||
|
||||
if (subplan->subLinkType == EXPR_SUBLINK ||
|
||||
subplan->subLinkType == ARRAY_SUBLINK)
|
||||
@ -282,7 +282,7 @@ exprTypmod(const Node *expr)
|
||||
break;
|
||||
case T_SubLink:
|
||||
{
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
|
||||
if (sublink->subLinkType == EXPR_SUBLINK ||
|
||||
sublink->subLinkType == ARRAY_SUBLINK)
|
||||
@ -303,7 +303,7 @@ exprTypmod(const Node *expr)
|
||||
break;
|
||||
case T_SubPlan:
|
||||
{
|
||||
const SubPlan *subplan = (const SubPlan *) expr;
|
||||
const SubPlan *subplan = (const SubPlan *) expr;
|
||||
|
||||
if (subplan->subLinkType == EXPR_SUBLINK ||
|
||||
subplan->subLinkType == ARRAY_SUBLINK)
|
||||
@ -341,7 +341,7 @@ exprTypmod(const Node *expr)
|
||||
* If all the alternatives agree on type/typmod, return that
|
||||
* typmod, else use -1
|
||||
*/
|
||||
const CaseExpr *cexpr = (const CaseExpr *) expr;
|
||||
const CaseExpr *cexpr = (const CaseExpr *) expr;
|
||||
Oid casetype = cexpr->casetype;
|
||||
int32 typmod;
|
||||
ListCell *arg;
|
||||
@ -374,7 +374,7 @@ exprTypmod(const Node *expr)
|
||||
* If all the elements agree on type/typmod, return that
|
||||
* typmod, else use -1
|
||||
*/
|
||||
const ArrayExpr *arrayexpr = (const ArrayExpr *) expr;
|
||||
const ArrayExpr *arrayexpr = (const ArrayExpr *) expr;
|
||||
Oid commontype;
|
||||
int32 typmod;
|
||||
ListCell *elem;
|
||||
@ -493,7 +493,7 @@ exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod)
|
||||
*/
|
||||
if (expr && IsA(expr, FuncExpr))
|
||||
{
|
||||
const FuncExpr *func = (const FuncExpr *) expr;
|
||||
const FuncExpr *func = (const FuncExpr *) expr;
|
||||
int nargs;
|
||||
Const *second_arg;
|
||||
|
||||
@ -707,7 +707,7 @@ exprCollation(const Node *expr)
|
||||
break;
|
||||
case T_SubLink:
|
||||
{
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
|
||||
if (sublink->subLinkType == EXPR_SUBLINK ||
|
||||
sublink->subLinkType == ARRAY_SUBLINK)
|
||||
@ -733,7 +733,7 @@ exprCollation(const Node *expr)
|
||||
break;
|
||||
case T_SubPlan:
|
||||
{
|
||||
const SubPlan *subplan = (const SubPlan *) expr;
|
||||
const SubPlan *subplan = (const SubPlan *) expr;
|
||||
|
||||
if (subplan->subLinkType == EXPR_SUBLINK ||
|
||||
subplan->subLinkType == ARRAY_SUBLINK)
|
||||
@ -1137,7 +1137,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_FuncExpr:
|
||||
{
|
||||
const FuncExpr *fexpr = (const FuncExpr *) expr;
|
||||
const FuncExpr *fexpr = (const FuncExpr *) expr;
|
||||
|
||||
/* consider both function name and leftmost arg */
|
||||
loc = leftmostLoc(fexpr->location,
|
||||
@ -1157,7 +1157,7 @@ exprLocation(const Node *expr)
|
||||
case T_DistinctExpr: /* struct-equivalent to OpExpr */
|
||||
case T_NullIfExpr: /* struct-equivalent to OpExpr */
|
||||
{
|
||||
const OpExpr *opexpr = (const OpExpr *) expr;
|
||||
const OpExpr *opexpr = (const OpExpr *) expr;
|
||||
|
||||
/* consider both operator name and leftmost arg */
|
||||
loc = leftmostLoc(opexpr->location,
|
||||
@ -1175,7 +1175,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_BoolExpr:
|
||||
{
|
||||
const BoolExpr *bexpr = (const BoolExpr *) expr;
|
||||
const BoolExpr *bexpr = (const BoolExpr *) expr;
|
||||
|
||||
/*
|
||||
* Same as above, to handle either NOT or AND/OR. We can't
|
||||
@ -1188,7 +1188,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_SubLink:
|
||||
{
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
const SubLink *sublink = (const SubLink *) expr;
|
||||
|
||||
/* check the testexpr, if any, and the operator/keyword */
|
||||
loc = leftmostLoc(exprLocation(sublink->testexpr),
|
||||
@ -1273,7 +1273,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_XmlExpr:
|
||||
{
|
||||
const XmlExpr *xexpr = (const XmlExpr *) expr;
|
||||
const XmlExpr *xexpr = (const XmlExpr *) expr;
|
||||
|
||||
/* consider both function name and leftmost arg */
|
||||
loc = leftmostLoc(xexpr->location,
|
||||
@ -1327,7 +1327,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_A_Expr:
|
||||
{
|
||||
const A_Expr *aexpr = (const A_Expr *) expr;
|
||||
const A_Expr *aexpr = (const A_Expr *) expr;
|
||||
|
||||
/* use leftmost of operator or left operand (if any) */
|
||||
/* we assume right operand can't be to left of operator */
|
||||
@ -1346,7 +1346,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_FuncCall:
|
||||
{
|
||||
const FuncCall *fc = (const FuncCall *) expr;
|
||||
const FuncCall *fc = (const FuncCall *) expr;
|
||||
|
||||
/* consider both function name and leftmost arg */
|
||||
/* (we assume any ORDER BY nodes must be to right of name) */
|
||||
@ -1364,7 +1364,7 @@ exprLocation(const Node *expr)
|
||||
break;
|
||||
case T_TypeCast:
|
||||
{
|
||||
const TypeCast *tc = (const TypeCast *) expr;
|
||||
const TypeCast *tc = (const TypeCast *) expr;
|
||||
|
||||
/*
|
||||
* This could represent CAST(), ::, or TypeName 'literal', so
|
||||
|
Reference in New Issue
Block a user