MCPcopy Create free account
hub / github.com/bytebase/bytebase / isAutoIncrementColumn

Function isAutoIncrementColumn

backend/plugin/schema/tidb/walk_through.go:1121–1128  ·  view source on GitHub ↗
(column *tidbast.ColumnDef)

Source from the content-addressed store, hash-verified

1119}
1120
1121func isAutoIncrementColumn(column *tidbast.ColumnDef) bool {
1122 for _, option := range column.Options {
1123 if option.Tp == tidbast.ColumnOptionAutoIncrement {
1124 return true
1125 }
1126 }
1127 return false
1128}
1129
1130func checkDefault(columnName string, columnType *types.FieldType, value tidbast.ExprNode) *storepb.Advice {
1131 if value.GetType().GetType() != mysql.TypeNull {

Callers 1

tidbCreateTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected