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.
This commit is contained in:
Andrew Gierth 2017-04-03 23:30:24 +01:00
parent 9fa6e08d4a
commit f578093526
1 changed files with 2 additions and 0 deletions

View File

@ -3362,6 +3362,8 @@ get_number_of_groups(PlannerInfo *root,
ListCell *lc;
ListCell *lc2;
Assert(gd); /* keep Coverity happy */
dNumGroups = 0;
foreach(lc, gd->rollups)