Fix a minor bug in outfuncs support for SetOp: dupOperators is an array
authorNeil Conway <neilc@samurai.com>
Mon, 7 Jan 2008 21:33:10 +0000 (21:33 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 7 Jan 2008 21:33:10 +0000 (21:33 +0000)
of Oid, and therefore should use the "%u" escape sequence rather than "%d".

src/backend/nodes/outfuncs.c

index 38f09a41485fb0ffcac3428362fb33d5e2ca41b6..02c33e7a779dd6c0e1e0f61e46a5439c7dceb7a3 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.320 2008/01/01 19:45:50 momjian Exp $
+ *   $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.321 2008/01/07 21:33:10 neilc Exp $
  *
  * NOTES
  *   Every node type that can appear in stored rules' parsetrees *must*
@@ -600,7 +600,7 @@ _outSetOp(StringInfo str, SetOp *node)
 
    appendStringInfo(str, " :dupOperators");
    for (i = 0; i < node->numCols; i++)
-       appendStringInfo(str, " %d", node->dupOperators[i]);
+       appendStringInfo(str, " %u", node->dupOperators[i]);
 
    WRITE_INT_FIELD(flagColIdx);
 }