aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-11-13 23:49:23 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-11-13 23:49:23 +0000
commitef679ff6b7390c7773bf41d073dbe5f1502d9d04 (patch)
treeeb30481985eab80bef65d228c192c62dd5d6d6b2 /src/backend/parser/parse_utilcmd.c
parent82121aff12343a622d7aa611f937f7184e9a759e (diff)
downloadpostgresql-ef679ff6b7390c7773bf41d073dbe5f1502d9d04.tar.gz
postgresql-ef679ff6b7390c7773bf41d073dbe5f1502d9d04.zip
Clean up a couple of bizarre code formatting choices in recent CREATE LIKE patch.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
-rw-r--r--src/backend/parser/parse_utilcmd.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c
index 0369236ec2a..18f7e5c556e 100644
--- a/src/backend/parser/parse_utilcmd.c
+++ b/src/backend/parser/parse_utilcmd.c
@@ -19,7 +19,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.29 2009/11/05 23:24:24 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.30 2009/11/13 23:49:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -647,8 +647,9 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
/* Likewise, copy comment if requested */
if ((inhRelation->options & CREATE_TABLE_LIKE_COMMENTS) &&
- (comment = GetComment(attribute->attrelid, RelationRelationId,
- attribute->attnum)) != NULL)
+ (comment = GetComment(attribute->attrelid,
+ RelationRelationId,
+ attribute->attnum)) != NULL)
{
CommentStmt *stmt = makeNode(CommentStmt);
@@ -667,7 +668,8 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
* Copy CHECK constraints if requested, being careful to adjust attribute
* numbers
*/
- if ((inhRelation->options & CREATE_TABLE_LIKE_CONSTRAINTS) && tupleDesc->constr)
+ if ((inhRelation->options & CREATE_TABLE_LIKE_CONSTRAINTS) &&
+ tupleDesc->constr)
{
AttrNumber *attmap = varattnos_map_schema(tupleDesc, cxt->columns);
int ccnum;
@@ -690,8 +692,10 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
/* Copy comment on constraint */
if ((inhRelation->options & CREATE_TABLE_LIKE_COMMENTS) &&
- (comment = GetComment(GetConstraintByName(RelationGetRelid(
- relation), n->conname), ConstraintRelationId, 0)) != NULL)
+ (comment = GetComment(GetConstraintByName(RelationGetRelid(relation),
+ n->conname),
+ ConstraintRelationId,
+ 0)) != NULL)
{
CommentStmt *stmt = makeNode(CommentStmt);