Skip to content

Commit fc022d7

Browse files
committed
Fix stupid parenthesization mistake. Per bug #4728 from Bruce Toll.
1 parent ff301d6 commit fc022d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/optimizer/plan/planner.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planner.c,v 1.251 2009/01/09 15:46:10 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planner.c,v 1.252 2009/03/24 21:12:56 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2546,8 +2546,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist,
25462546
if (list_length(new_pathkeys) > list_length(pathkeys))
25472547
{
25482548
/* this sort clause is actually significant */
2549-
*partColIdx[*partNumCols] = sortColIdx[scidx++];
2550-
*partOperators[*partNumCols] = sgc->eqop;
2549+
(*partColIdx)[*partNumCols] = sortColIdx[scidx++];
2550+
(*partOperators)[*partNumCols] = sgc->eqop;
25512551
(*partNumCols)++;
25522552
pathkeys = new_pathkeys;
25532553
}
@@ -2565,8 +2565,8 @@ get_column_info_for_window(PlannerInfo *root, WindowClause *wc, List *tlist,
25652565
if (list_length(new_pathkeys) > list_length(pathkeys))
25662566
{
25672567
/* this sort clause is actually significant */
2568-
*ordColIdx[*ordNumCols] = sortColIdx[scidx++];
2569-
*ordOperators[*ordNumCols] = sgc->eqop;
2568+
(*ordColIdx)[*ordNumCols] = sortColIdx[scidx++];
2569+
(*ordOperators)[*ordNumCols] = sgc->eqop;
25702570
(*ordNumCols)++;
25712571
pathkeys = new_pathkeys;
25722572
}

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