There was an error while loading. Please reload this page.
1 parent b62ff79 commit cd825ceCopy full SHA for cd825ce
schema/schema.go
@@ -190,9 +190,9 @@ func (ta *Table) GetPKColumn(index int) *TableColumn {
190
191
// Get Index by column index. Return nil if the column is not a index.
192
func (ta *Table) GetIndex(colIndex int) *Index {
193
-for i, _colIndex := range t.PKColumns {
+for i, _colIndex := range ta.PKColumns {
194
if _colIndex == colIndex {
195
-return t.Indexes[i]
+return ta.Indexes[i]
196
}
197
198
return nil
0 commit comments