Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf70dfbf

Browse files
committed
Fix _outConstraint() for "identity" constraints
The set of fields printed by _outConstraint() in the CONSTR_IDENTITYcase didn't match the set of fields actually used in that case. (Thecode was probably uncarefully copied from the CONSTR_DEFAULT case.)Fix that by using the right set of fields. Since there is no readsupport for this node type, this is really just for debugging outputright now, so it doesn't affect anything important.
1 parent5afa63f commitf70dfbf

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
@@ -3538,8 +3538,7 @@ _outConstraint(StringInfo str, const Constraint *node)
35383538

35393539
caseCONSTR_IDENTITY:
35403540
appendStringInfoString(str,"IDENTITY");
3541-
WRITE_NODE_FIELD(raw_expr);
3542-
WRITE_STRING_FIELD(cooked_expr);
3541+
WRITE_NODE_FIELD(options);
35433542
WRITE_CHAR_FIELD(generated_when);
35443543
break;
35453544

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp