Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef679ff

Browse files
committed
Clean up a couple of bizarre code formatting choices in recent CREATE LIKE patch.
1 parent82121af commitef679ff

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
intccnum;
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp