Skip to content

Commit e7cc4a6

Browse files
committed
Use WRITE_ENUM_FIELD for enum field
1 parent 51e8179 commit e7cc4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ _outJsonConstructorExpr(StringInfo str, const JsonConstructorExpr *node)
17971797
WRITE_NODE_FIELD(args);
17981798
WRITE_NODE_FIELD(func);
17991799
WRITE_NODE_FIELD(coercion);
1800-
WRITE_INT_FIELD(type);
1800+
WRITE_ENUM_FIELD(type, JsonConstructorType);
18011801
WRITE_NODE_FIELD(returning);
18021802
WRITE_BOOL_FIELD(unique);
18031803
WRITE_BOOL_FIELD(absent_on_null);

0 commit comments

Comments
 (0)