Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6d389bf

Browse files
author
Neil Conway
committed
Fix a minor bug in outfuncs support for SetOp: dupOperators is an array
of Oid, and therefore should use the "%u" escape sequence rather than "%d".
1 parent 5935890 commit 6d389bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/nodes/outfuncs.c

+2-2
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.320 2008/01/01 19:45:50 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.321 2008/01/07 21:33:10 neilc Exp $
1212
*
1313
* NOTES
1414
* Every node type that can appear in stored rules' parsetrees *must*
@@ -600,7 +600,7 @@ _outSetOp(StringInfo str, SetOp *node)
600600

601601
appendStringInfo(str, " :dupOperators");
602602
for (i = 0; i < node->numCols; i++)
603-
appendStringInfo(str, " %d", node->dupOperators[i]);
603+
appendStringInfo(str, " %u", node->dupOperators[i]);
604604

605605
WRITE_INT_FIELD(flagColIdx);
606606
}

0 commit comments

Comments
 (0)