Skip to content

Commit 6bcd1d9

Browse files
committed
Fix FK comment think-o
from commit d6f96ed Author: Paul Jungwirth <pj@illuminatedcomputing.com> Reviewed-by: Ian Lawrence Barwick <barwick@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/6a7c7338-1aa2-4689-d171-0b0b294fdd84%40illuminatedcomputing.com
1 parent 2a53562 commit 6bcd1d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/commands/tablecmds.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9468,7 +9468,7 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
94689468
}
94699469

94709470
/*
9471-
* validateFkActionSetColumns
9471+
* validateFkOnDeleteSetColumns
94729472
* Verifies that columns used in ON DELETE SET NULL/DEFAULT (...)
94739473
* column lists are valid.
94749474
*/
@@ -9523,10 +9523,10 @@ validateFkOnDeleteSetColumns(int numfks, const int16 *fkattnums,
95239523
* numfks is the number of columns in the foreign key
95249524
* pkattnum is the attnum array of referenced attributes.
95259525
* fkattnum is the attnum array of referencing attributes.
9526-
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DELETE
9526+
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DEFAULT
95279527
* (...) clause
95289528
* fkdelsetcols is the attnum array of the columns in the ON DELETE SET
9529-
* NULL/DELETE clause
9529+
* NULL/DEFAULT clause
95309530
* pf/pp/ffeqoperators are OID array of operators between columns.
95319531
* old_check_ok signals that this constraint replaces an existing one that
95329532
* was already validated (thus this one doesn't need validation).
@@ -9742,10 +9742,10 @@ addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint, Relation rel,
97429742
* pkattnum is the attnum array of referenced attributes.
97439743
* fkattnum is the attnum array of referencing attributes.
97449744
* pf/pp/ffeqoperators are OID array of operators between columns.
9745-
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DELETE
9745+
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DEFAULT
97469746
* (...) clause
97479747
* fkdelsetcols is the attnum array of the columns in the ON DELETE SET
9748-
* NULL/DELETE clause
9748+
* NULL/DEFAULT clause
97499749
* old_check_ok signals that this constraint replaces an existing one that
97509750
* was already validated (thus this one doesn't need validation).
97519751
* lockmode is the lockmode to acquire on partitions when recursing.

0 commit comments

Comments
 (0)