Fix stupid parenthesization mistake. Per bug #4728 from Bruce Toll.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Mar 2009 21:12:56 +0000 (21:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Mar 2009 21:12:56 +0000 (21:12 +0000)
src/backend/optimizer/plan/planner.c

index 357d949c6a520604cb6ac3641014bc12b36446c0..cbd55b7075c6bd956a5f0f9b1d5fafbe771372db 100644 (file)
@@ -2546,8 +2546,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist,
                        if (list_length(new_pathkeys) > list_length(pathkeys))
                        {
                                /* this sort clause is actually significant */
-                               *partColIdx[*partNumCols] = sortColIdx[scidx++];
-                               *partOperators[*partNumCols] = sgc->eqop;
+                               (*partColIdx)[*partNumCols] = sortColIdx[scidx++];
+                               (*partOperators)[*partNumCols] = sgc->eqop;
                                (*partNumCols)++;
                                pathkeys = new_pathkeys;
                        }
@@ -2565,8 +2565,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist,
                        if (list_length(new_pathkeys) > list_length(pathkeys))
                        {
                                /* this sort clause is actually significant */
-                               *ordColIdx[*ordNumCols] = sortColIdx[scidx++];
-                               *ordOperators[*ordNumCols] = sgc->eqop;
+                               (*ordColIdx)[*ordNumCols] = sortColIdx[scidx++];
+                               (*ordOperators)[*ordNumCols] = sgc->eqop;
                                (*ordNumCols)++;
                                pathkeys = new_pathkeys;
                        }