Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbee1c5

Browse files
author
Neil Conway
committed
Fix an omission in the outfuncs.c support for Agg nodes: the grpColIdx
and grpOperators fields were not emitted by _outAgg().
1 parentccd3e32 commitbbee1c5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.321 2008/01/07 21:33:10 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.322 2008/01/09 08:46:44 neilc Exp $
1212
*
1313
* NOTES
1414
* Every node type that can appear in stored rules' parsetrees *must*
@@ -501,12 +501,23 @@ _outHashJoin(StringInfo str, HashJoin *node)
501501
staticvoid
502502
_outAgg(StringInfostr,Agg*node)
503503
{
504+
inti;
505+
504506
WRITE_NODE_TYPE("AGG");
505507

506508
_outPlanInfo(str, (Plan*)node);
507509

508510
WRITE_ENUM_FIELD(aggstrategy,AggStrategy);
509511
WRITE_INT_FIELD(numCols);
512+
513+
appendStringInfo(str," :grpColIdx");
514+
for (i=0;i<node->numCols;i++)
515+
appendStringInfo(str," %d",node->grpColIdx[i]);
516+
517+
appendStringInfo(str," :grpOperators");
518+
for (i=0;i<node->numCols;i++)
519+
appendStringInfo(str," %u",node->grpOperators[i]);
520+
510521
WRITE_LONG_FIELD(numGroups);
511522
}
512523

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp