Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ef679ff

Browse files
committed
Clean up a couple of bizarre code formatting choices in recent CREATE LIKE patch.
1 parent 82121af commit ef679ff

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/backend/parser/parse_utilcmd.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
2020
* Portions Copyright (c) 1994, Regents of the University of California
2121
*
22-
* $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.29 2009/11/05 23:24:24 tgl Exp $
22+
* $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.30 2009/11/13 23:49:23 tgl Exp $
2323
*
2424
*-------------------------------------------------------------------------
2525
*/
@@ -647,8 +647,9 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
647647

648648
/* Likewise, copy comment if requested */
649649
if ((inhRelation->options & CREATE_TABLE_LIKE_COMMENTS) &&
650-
(comment = GetComment(attribute->attrelid, RelationRelationId,
651-
attribute->attnum)) != NULL)
650+
(comment = GetComment(attribute->attrelid,
651+
RelationRelationId,
652+
attribute->attnum)) != NULL)
652653
{
653654
CommentStmt *stmt = makeNode(CommentStmt);
654655

@@ -667,7 +668,8 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
667668
* Copy CHECK constraints if requested, being careful to adjust attribute
668669
* numbers
669670
*/
670-
if ((inhRelation->options & CREATE_TABLE_LIKE_CONSTRAINTS) && tupleDesc->constr)
671+
if ((inhRelation->options & CREATE_TABLE_LIKE_CONSTRAINTS) &&
672+
tupleDesc->constr)
671673
{
672674
AttrNumber *attmap = varattnos_map_schema(tupleDesc, cxt->columns);
673675
int ccnum;
@@ -690,8 +692,10 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
690692

691693
/* Copy comment on constraint */
692694
if ((inhRelation->options & CREATE_TABLE_LIKE_COMMENTS) &&
693-
(comment = GetComment(GetConstraintByName(RelationGetRelid(
694-
relation), n->conname), ConstraintRelationId, 0)) != NULL)
695+
(comment = GetComment(GetConstraintByName(RelationGetRelid(relation),
696+
n->conname),
697+
ConstraintRelationId,
698+
0)) != NULL)
695699
{
696700
CommentStmt *stmt = makeNode(CommentStmt);
697701

0 commit comments

Comments
 (0)