Skip to content

Commit ab3d8af

Browse files
committed
Sync declarations and definitions of two new tablecmds.c functions.
Buildfarm member drongo complained because the definitions of these functions used "const Oid foo" where the forward declarations just had "Oid foo". (I'm a bit surprised that drongo seems to be the only complainant.) I chose to fix this by removing the "consts" because (a) I'm generally not a fan of using const that way, and (b) it was a minority usage even within these two functions, let alone compared to the rest of our code base. Oversight in commit eec0040, so no need for back-patch.
1 parent 11ff192 commit ab3d8af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12384,7 +12384,7 @@ ATExecAlterConstraintInternal(List **wqueue, ATAlterConstraint *cmdcon,
1238412384
static bool
1238512385
ATExecAlterConstrEnforceability(List **wqueue, ATAlterConstraint *cmdcon,
1238612386
Relation conrel, Relation tgrel,
12387-
const Oid fkrelid, const Oid pkrelid,
12387+
Oid fkrelid, Oid pkrelid,
1238812388
HeapTuple contuple, LOCKMODE lockmode,
1238912389
Oid ReferencedParentDelTrigger,
1239012390
Oid ReferencedParentUpdTrigger,
@@ -12732,7 +12732,7 @@ AlterConstrTriggerDeferrability(Oid conoid, Relation tgrel, Relation rel,
1273212732
static void
1273312733
AlterConstrEnforceabilityRecurse(List **wqueue, ATAlterConstraint *cmdcon,
1273412734
Relation conrel, Relation tgrel,
12735-
const Oid fkrelid, const Oid pkrelid,
12735+
Oid fkrelid, Oid pkrelid,
1273612736
HeapTuple contuple, LOCKMODE lockmode,
1273712737
Oid ReferencedParentDelTrigger,
1273812738
Oid ReferencedParentUpdTrigger,

0 commit comments

Comments
 (0)