Skip to content

Commit c250062

Browse files
committed
Remove unused argument of ATAddForeignConstraint
Commit 0325d7a made this unused but forgot to remove it. Do so now. Author: Amit Langote <amitlangote09@gmail.com> Discussion: https://postgr.es/m/209c99fe-b9a2-94f4-cd68-a8304186a09e@lab.ntt.co.jp
1 parent 6f70d7c commit c250062

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/commands/tablecmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ static ObjectAddress ATAddCheckConstraint(List **wqueue,
477477
bool recurse, bool recursing, bool is_readd,
478478
LOCKMODE lockmode);
479479
static ObjectAddress ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab,
480-
Relation rel, Constraint *fkconstraint, Oid parentConstr,
480+
Relation rel, Constraint *fkconstraint,
481481
bool recurse, bool recursing,
482482
LOCKMODE lockmode);
483483
static ObjectAddress addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint,
@@ -8620,7 +8620,7 @@ ATExecAddConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
86208620
NIL);
86218621

86228622
address = ATAddForeignKeyConstraint(wqueue, tab, rel,
8623-
newConstraint, InvalidOid,
8623+
newConstraint,
86248624
recurse, false,
86258625
lockmode);
86268626
break;
@@ -8826,7 +8826,7 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
88268826
*/
88278827
static ObjectAddress
88288828
ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
8829-
Constraint *fkconstraint, Oid parentConstr,
8829+
Constraint *fkconstraint,
88308830
bool recurse, bool recursing, LOCKMODE lockmode)
88318831
{
88328832
Relation pkrel;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy