(column *tidbast.ColumnDef)
| 1119 | } |
| 1120 | |
| 1121 | func 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 | |
| 1130 | func checkDefault(columnName string, columnType *types.FieldType, value tidbast.ExprNode) *storepb.Advice { |
| 1131 | if value.GetType().GetType() != mysql.TypeNull { |