From: Peter Eisentraut Date: Tue, 12 Apr 2022 14:19:00 +0000 (+0200) Subject: Use WRITE_ENUM_FIELD for enum field X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=e7cc4a6e3dcc39f3643f998aa5da6a6f27f28db5;p=users%2Frhaas%2Fpostgres.git Use WRITE_ENUM_FIELD for enum field --- diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 21fc79fd95..6a02f81ad5 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -1797,7 +1797,7 @@ _outJsonConstructorExpr(StringInfo str, const JsonConstructorExpr *node) WRITE_NODE_FIELD(args); WRITE_NODE_FIELD(func); WRITE_NODE_FIELD(coercion); - WRITE_INT_FIELD(type); + WRITE_ENUM_FIELD(type, JsonConstructorType); WRITE_NODE_FIELD(returning); WRITE_BOOL_FIELD(unique); WRITE_BOOL_FIELD(absent_on_null);