Skip to content

Commit f578093

Browse files
committed
Try and silence spurious Coverity warning.
gset_data (aka gd) in planner.c is always non-null if and only if parse->groupingSets is non-null, but Coverity doesn't know that and complains. Feed it an assertion to see if that keeps it happy.
1 parent 9fa6e08 commit f578093

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy