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 */
649649if ((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{
653654CommentStmt * 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{
672674AttrNumber * attmap = varattnos_map_schema (tupleDesc ,cxt -> columns );
673675int ccnum ;
@@ -690,8 +692,10 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
690692
691693/* Copy comment on constraint */
692694if ((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{
696700CommentStmt * stmt = makeNode (CommentStmt );
697701