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

Commitf578093

Browse files
committed
Try and silence spurious Coverity warning.
gset_data (aka gd) in planner.c is always non-null if and only ifparse->groupingSets is non-null, but Coverity doesn't know that andcomplains. Feed it an assertion to see if that keeps it happy.
1 parent9fa6e08 commitf578093

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,6 +3362,8 @@ get_number_of_groups(PlannerInfo *root,
33623362
ListCell*lc;
33633363
ListCell*lc2;
33643364

3365+
Assert(gd);/* keep Coverity happy */
3366+
33653367
dNumGroups=0;
33663368

33673369
foreach(lc,gd->rollups)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp