Skip to content

Commit 84dbdc8

Browse files
committed
lowercase updatableJoinTable
1 parent 222fa00 commit 84dbdc8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sql/plan/update_join.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ func (u *UpdateJoin) DebugString() string {
5454

5555
// GetUpdatable returns an updateJoinTable which implements sql.UpdatableTable.
5656
func (u *UpdateJoin) GetUpdatable() sql.UpdatableTable {
57-
return &UpdatableJoinTable{
58-
UpdateTargets: u.UpdateTargets,
57+
return &updatableJoinTable{
58+
updateTargets: u.UpdateTargets,
5959
joinNode: u.Child.(*UpdateSource).Child,
6060
}
6161
}
@@ -94,47 +94,47 @@ func getUpdaters(updateTargets map[string]sql.Node, ctx *sql.Context) (map[strin
9494
return updaterMap, nil
9595
}
9696

97-
// UpdatableJoinTable manages the update of multiple tables.
98-
type UpdatableJoinTable struct {
99-
UpdateTargets map[string]sql.Node
97+
// updatableJoinTable manages the update of multiple tables.
98+
type updatableJoinTable struct {
99+
updateTargets map[string]sql.Node
100100
joinNode sql.Node
101101
}
102102

103-
var _ sql.UpdatableTable = (*UpdatableJoinTable)(nil)
103+
var _ sql.UpdatableTable = (*updatableJoinTable)(nil)
104104

105105
// Partitions implements the sql.UpdatableTable interface.
106-
func (u *UpdatableJoinTable) Partitions(context *sql.Context) (sql.PartitionIter, error) {
106+
func (u *updatableJoinTable) Partitions(context *sql.Context) (sql.PartitionIter, error) {
107107
panic("this method should not be called")
108108
}
109109

110110
// PartitionsRows implements the sql.UpdatableTable interface.
111-
func (u *UpdatableJoinTable) PartitionRows(context *sql.Context, partition sql.Partition) (sql.RowIter, error) {
111+
func (u *updatableJoinTable) PartitionRows(context *sql.Context, partition sql.Partition) (sql.RowIter, error) {
112112
panic("this method should not be called")
113113
}
114114

115115
// Name implements the sql.UpdatableTable interface.
116-
func (u *UpdatableJoinTable) Name() string {
116+
func (u *updatableJoinTable) Name() string {
117117
panic("this method should not be called")
118118
}
119119

120120
// String implements the sql.UpdatableTable interface.
121-
func (u *UpdatableJoinTable) String() string {
121+
func (u *updatableJoinTable) String() string {
122122
panic("this method should not be called")
123123
}
124124

125125
// Schema implements the sql.UpdatableTable interface.
126-
func (u *UpdatableJoinTable) Schema() sql.Schema {
126+
func (u *updatableJoinTable) Schema() sql.Schema {
127127
return u.joinNode.Schema()
128128
}
129129

130130
// Collation implements the sql.Table interface.
131-
func (u *UpdatableJoinTable) Collation() sql.CollationID {
131+
func (u *updatableJoinTable) Collation() sql.CollationID {
132132
return sql.Collation_Default
133133
}
134134

135135
// Updater implements the sql.UpdatableTable interface.
136-
func (u *UpdatableJoinTable) Updater(ctx *sql.Context) sql.RowUpdater {
137-
updaters, _ := getUpdaters(u.UpdateTargets, ctx)
136+
func (u *updatableJoinTable) Updater(ctx *sql.Context) sql.RowUpdater {
137+
updaters, _ := getUpdaters(u.updateTargets, ctx)
138138
return &updatableJoinUpdater{
139139
updaterMap: updaters,
140140
schemaMap: RecreateTableSchemaFromJoinSchema(u.joinNode.Schema()),

0 commit comments

Comments
 (0)