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 e1134000a15fdef984fe9529d90d331a6252eb78..41c620686d214c278703a7727c439ab2d52923f9 100644 (file)
@@ -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);
 }