mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Improve code comment
The previous wording was potentially confusing about the impact of the OVERRIDING clause on generated columns. Reword slightly to avoid that. Reported-by: jian he <jian.universality@gmail.com> Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CACJufxFMBe0nPXOQZMLTH4Ry5Gyj4m%2B2Z05mRi9KB4hk8rGt9w%40mail.gmail.com
This commit is contained in:
@ -923,8 +923,9 @@ rewriteTargetListIU(List *targetList,
|
||||
apply_default = true;
|
||||
|
||||
/*
|
||||
* Can only insert DEFAULT into generated columns, regardless of
|
||||
* any OVERRIDING clauses.
|
||||
* Can only insert DEFAULT into generated columns. (The
|
||||
* OVERRIDING clause does not apply to generated columns, so we
|
||||
* don't consider it here.)
|
||||
*/
|
||||
if (att_tup->attgenerated && !apply_default)
|
||||
{
|
||||
|
Reference in New Issue
Block a user