Skip to content

Commit c9f9abb

Browse files
author
James Cor
committed
remove TODOs
1 parent ece354b commit c9f9abb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sql/analyzer/apply_foreign_keys.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ func getForeignKeyRefActions(ctx *sql.Context, a *Analyzer, tbl sql.ForeignKeyTa
354354
// If either referential action is not equivalent to RESTRICT, then the updater has the possibility of having
355355
// its contents modified, therefore we add it to the chain.
356356
if !fk.OnUpdate.IsEquivalentToRestrict() || !fk.OnDelete.IsEquivalentToRestrict() {
357-
// TODO: why would I add the updater without the table here?
358357
fkChain = fkChain.AddTableUpdater(fk.Database, fk.Table, childUpdater)
359358
}
360359

@@ -386,7 +385,6 @@ func getForeignKeyRefActions(ctx *sql.Context, a *Analyzer, tbl sql.ForeignKeyTa
386385
return nil, err
387386
}
388387

389-
// TODO: does this need to be a deep copy or no???
390388
fkChain = fkChain.AddForeignKey(fk.Name)
391389
childEditor, err := getForeignKeyEditor(ctx, a, childTbl, cache, fkChain, checkRows)
392390
if err != nil {

0 commit comments

Comments
 (0)