fix golint issues (#533)

This commit is contained in:
Kevin Wan
2021-03-02 00:11:18 +08:00
committed by GitHub
parent c4b2cddef7
commit af531cf264
3 changed files with 3 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ func (m *InformationSchemaModel) FindColumns(db, table string) (*ColumnData, err
return &columnData, nil
}
// FindIndex finds index with given db, table and column.
func (m *InformationSchemaModel) FindIndex(db, table, column string) ([]*DbIndex, error) {
querySql := `SELECT s.INDEX_NAME,s.NON_UNIQUE,s.SEQ_IN_INDEX from STATISTICS s WHERE s.TABLE_SCHEMA = ? and s.TABLE_NAME = ? and s.COLUMN_NAME = ?`
var reply []*DbIndex