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

Commitef74e03

Browse files
committed
Fix UPDATE of GENERATED ALWAYS identity columns
The bug would previously prevent the update of any column in a tablewith identity columns, rather than just the actual identity column.Reported-by: zam6ak@gmail.comBug: #14718
1 parent572d6ee commitef74e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/rewrite/rewriteHandler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ rewriteTargetListIU(List *targetList,
827827

828828
if (commandType==CMD_UPDATE)
829829
{
830-
if (att_tup->attidentity==ATTRIBUTE_IDENTITY_ALWAYS&& !apply_default)
830+
if (att_tup->attidentity==ATTRIBUTE_IDENTITY_ALWAYS&&new_tle&&!apply_default)
831831
ereport(ERROR,
832832
(errcode(ERRCODE_GENERATED_ALWAYS),
833833
errmsg("column \"%s\" can only be updated to DEFAULT",NameStr(att_tup->attname)),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp