// Add create table options into TableInfo. func (d *ddl) handleTableOptions(options []*ast.TableOption, tbInfo *model.TableInfo, schemaID int64) { for _, op := range options { switch op.Tp { case ast.TableOptionAutoIncrement: tbInfo.AutoIncID = int64(op.UintValue) case ast.TableOptionComment: tbInfo.Comment = op.StrValue case ast.TableOptionCharset: tbInfo.Charset = op.StrValue case ast.TableOptionCollate: tbInfo.Charset = op.StrValue } } }