1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00

Use WRITE_ENUM_FIELD for enum field

This commit is contained in:
Peter Eisentraut 2022-04-12 16:19:00 +02:00
parent 51e8179405
commit e7cc4a6e3d

View File

@ -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);