Skip to content

Commit cd825ce

Browse files
committed
fix typo
1 parent b62ff79 commit cd825ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema/schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ func (ta *Table) GetPKColumn(index int) *TableColumn {
190190

191191
// Get Index by column index. Return nil if the column is not a index.
192192
func (ta *Table) GetIndex(colIndex int) *Index {
193-
for i, _colIndex := range t.PKColumns {
193+
for i, _colIndex := range ta.PKColumns {
194194
if _colIndex == colIndex {
195-
return t.Indexes[i]
195+
return ta.Indexes[i]
196196
}
197197
}
198198
return nil

0 commit comments

Comments
 (0)