19
19
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
20
20
* Portions Copyright (c) 1994, Regents of the University of California
21
21
*
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 $
23
23
*
24
24
*-------------------------------------------------------------------------
25
25
*/
@@ -647,8 +647,9 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
647
647
648
648
/* Likewise, copy comment if requested */
649
649
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 )
652
653
{
653
654
CommentStmt * stmt = makeNode (CommentStmt );
654
655
@@ -667,7 +668,8 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
667
668
* Copy CHECK constraints if requested, being careful to adjust attribute
668
669
* numbers
669
670
*/
670
- if ((inhRelation -> options & CREATE_TABLE_LIKE_CONSTRAINTS ) && tupleDesc -> constr )
671
+ if ((inhRelation -> options & CREATE_TABLE_LIKE_CONSTRAINTS ) &&
672
+ tupleDesc -> constr )
671
673
{
672
674
AttrNumber * attmap = varattnos_map_schema (tupleDesc , cxt -> columns );
673
675
int ccnum ;
@@ -690,8 +692,10 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
690
692
691
693
/* Copy comment on constraint */
692
694
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 )
695
699
{
696
700
CommentStmt * stmt = makeNode (CommentStmt );
697
701
0 commit comments