Commit fc022d72 authored by Tom Lane's avatar Tom Lane

Fix stupid parenthesization mistake. Per bug #4728 from Bruce Toll.

parent ff301d6e
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planner.c,v 1.251 2009/01/09 15:46:10 tgl Exp $ * $PostgreSQL: pgsql/src/backend/optimizer/plan/planner.c,v 1.252 2009/03/24 21:12:56 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -2546,8 +2546,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist, ...@@ -2546,8 +2546,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist,
if (list_length(new_pathkeys) > list_length(pathkeys)) if (list_length(new_pathkeys) > list_length(pathkeys))
{ {
/* this sort clause is actually significant */ /* this sort clause is actually significant */
*partColIdx[*partNumCols] = sortColIdx[scidx++]; (*partColIdx)[*partNumCols] = sortColIdx[scidx++];
*partOperators[*partNumCols] = sgc->eqop; (*partOperators)[*partNumCols] = sgc->eqop;
(*partNumCols)++; (*partNumCols)++;
pathkeys = new_pathkeys; pathkeys = new_pathkeys;
} }
...@@ -2565,8 +2565,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist, ...@@ -2565,8 +2565,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist,
if (list_length(new_pathkeys) > list_length(pathkeys)) if (list_length(new_pathkeys) > list_length(pathkeys))
{ {
/* this sort clause is actually significant */ /* this sort clause is actually significant */
*ordColIdx[*ordNumCols] = sortColIdx[scidx++]; (*ordColIdx)[*ordNumCols] = sortColIdx[scidx++];
*ordOperators[*ordNumCols] = sgc->eqop; (*ordOperators)[*ordNumCols] = sgc->eqop;
(*ordNumCols)++; (*ordNumCols)++;
pathkeys = new_pathkeys; pathkeys = new_pathkeys;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment