Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 committed Jul 19, 2019
1 parent 40affaf commit 7033d8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions infoschema/infoschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ func IsMemoryDB(dbName string) bool {
return false
}

// HasAutoIncrementColumn checks whether the table has auto_increment columns, if so, return true and the column name.
func HasAutoIncrementColumn(tbInfo *model.TableInfo) (bool, string) {
for _, col := range tbInfo.Columns {
if mysql.HasAutoIncrementFlag(col.Flag) {
Expand Down

0 comments on commit 7033d8e

Please sign in to comment.