Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e1878cf

Browse files
committed
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.
1 parent 15014b8 commit e1878cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,8 +3868,7 @@ _outConstraint(StringInfo str, const Constraint *node)
38683868

38693869
case CONSTR_IDENTITY:
38703870
appendStringInfoString(str, "IDENTITY");
3871-
WRITE_NODE_FIELD(raw_expr);
3872-
WRITE_STRING_FIELD(cooked_expr);
3871+
WRITE_NODE_FIELD(options);
38733872
WRITE_CHAR_FIELD(generated_when);
38743873
break;
38753874

0 commit comments

Comments
 (0)