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

Commitfc5e966

Browse files
committed
Suppress "may be used uninitialized" warnings from older compilers.
The "children" list won't be used until "got_children" has been settrue, but older compilers don't get that; about half a dozenbuildfarm animals are warning about this. Issue added by11ff192.While here, improve slightly-shaky grammar in comment.Discussion:https://postgr.es/m/2057835.1744833309@sss.pgh.pa.us
1 parent4aad2cb commitfc5e966

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9444,9 +9444,9 @@ ATExecDropColumn(List **wqueue, Relation rel, const char *colName,
94449444
*
94459445
* The not-null constraints for a primary key must cover the whole inheritance
94469446
* hierarchy (failing to ensure that leads to funny corner cases). For the
9447-
* normal case where we're asked to recurse, this routineensures that the
9448-
* not-null constraintseitherexist already,orqueues a requirement for them
9449-
* to be created by phase 2.
9447+
* normal case where we're asked to recurse, this routinechecks if the
9448+
* not-null constraints exist already,and if notqueues a requirement for
9449+
*themto be created by phase 2.
94509450
*
94519451
* For the case where we're asked not to recurse, we verify that a not-null
94529452
* constraint exists on each column of each (direct) child table, throwing an
@@ -9466,7 +9466,7 @@ ATPrepAddPrimaryKey(List **wqueue, Relation rel, AlterTableCmd *cmd,
94669466
AlterTableUtilityContext *context)
94679467
{
94689468
Constraint *pkconstr;
9469-
List *children;
9469+
List *children = NIL;
94709470
boolgot_children = false;
94719471

94729472
pkconstr = castNode(Constraint, cmd->def);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp