mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix _outConstraint() for "identity" constraints
The set of fields printed by _outConstraint() in the CONSTR_IDENTITY case didn't match the set of fields actually used in that case. (The code was probably uncarefully copied from the CONSTR_DEFAULT case.) Fix that by using the right set of fields. Since there is no read support for this node type, this is really just for debugging output right now, so it doesn't affect anything important.
This commit is contained in:
parent
5afa63f0ae
commit
f70dfbf36f
@ -3538,8 +3538,7 @@ _outConstraint(StringInfo str, const Constraint *node)
|
||||
|
||||
case CONSTR_IDENTITY:
|
||||
appendStringInfoString(str, "IDENTITY");
|
||||
WRITE_NODE_FIELD(raw_expr);
|
||||
WRITE_STRING_FIELD(cooked_expr);
|
||||
WRITE_NODE_FIELD(options);
|
||||
WRITE_CHAR_FIELD(generated_when);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user