Skip to content

Commit 5b03b88

Browse files
committed
fix comments
1 parent 84dbdc8 commit 5b03b88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/analyzer/apply_foreign_keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func getForeignKeyRefActions(ctx *sql.Context, a *Analyzer, tbl sql.ForeignKeyTa
449449
}
450450

451451
// getForeignKeyHandlerFromUpdateTarget creates a ForeignKeyHandler from a given update target Node. It is used for
452-
// applying foreign key constrains to Update nodes
452+
// applying foreign key constraints to Update nodes
453453
func getForeignKeyHandlerFromUpdateTarget(updateTarget sql.Node, ctx *sql.Context, a *Analyzer,
454454
cache *foreignKeyCache, fkChain foreignKeyChain) (*plan.ForeignKeyHandler, error) {
455455
updateDest, err := plan.GetUpdatable(updateTarget)

sql/analyzer/assign_update_join.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func modifyUpdateExprsForJoin(ctx *sql.Context, a *Analyzer, n sql.Node, scope *
5252
return n, transform.SameTree, nil
5353
}
5454

55-
// getUpdateTargetsByTable maps a set of table names to their corresponding update target Node
55+
// getUpdateTargetsByTable maps a set of table names and aliases to their corresponding update target Node
5656
func getUpdateTargetsByTable(node sql.Node, ij sql.Node) (map[string]sql.Node, error) {
5757
namesOfTableToBeUpdated := getTablesToBeUpdated(node)
5858
resolvedTables := getTablesByName(ij)

0 commit comments

Comments
 (0)