Skip to content

Commit 5e9b122

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 29861e2 commit 5e9b122

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
@@ -9435,7 +9435,7 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
94359435
}
94369436

94379437
/*
9438-
* validateFkActionSetColumns
9438+
* validateFkOnDeleteSetColumns
94399439
* Verifies that columns used in ON DELETE SET NULL/DEFAULT (...)
94409440
* column lists are valid.
94419441
*/
@@ -9490,10 +9490,10 @@ validateFkOnDeleteSetColumns(int numfks, const int16 *fkattnums,
94909490
* numfks is the number of columns in the foreign key
94919491
* pkattnum is the attnum array of referenced attributes.
94929492
* fkattnum is the attnum array of referencing attributes.
9493-
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DELETE
9493+
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DEFAULT
94949494
* (...) clause
94959495
* fkdelsetcols is the attnum array of the columns in the ON DELETE SET
9496-
* NULL/DELETE clause
9496+
* NULL/DEFAULT clause
94979497
* pf/pp/ffeqoperators are OID array of operators between columns.
94989498
* old_check_ok signals that this constraint replaces an existing one that
94999499
* was already validated (thus this one doesn't need validation).
@@ -9710,10 +9710,10 @@ addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint, Relation rel,
97109710
* pkattnum is the attnum array of referenced attributes.
97119711
* fkattnum is the attnum array of referencing attributes.
97129712
* pf/pp/ffeqoperators are OID array of operators between columns.
9713-
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DELETE
9713+
* numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DEFAULT
97149714
* (...) clause
97159715
* fkdelsetcols is the attnum array of the columns in the ON DELETE SET
9716-
* NULL/DELETE clause
9716+
* NULL/DEFAULT clause
97179717
* old_check_ok signals that this constraint replaces an existing one that
97189718
* was already validated (thus this one doesn't need validation).
97199719
* lockmode is the lockmode to acquire on partitions when recursing.

0 commit comments

Comments
 (0)