Skip to content

Commit

Permalink
parser, ast: add ColumnOptionCollate for all column types (#260) (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
bb7133 authored Apr 17, 2019
1 parent 7e41749 commit ca23903
Show file tree
Hide file tree
Showing 4 changed files with 4,190 additions and 4,165 deletions.
4 changes: 3 additions & 1 deletion ast/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ const (
ColumnOptionComment
ColumnOptionGenerated
ColumnOptionReference
ColumnOptionCollate
)

// ColumnOption is used for parsing column constraint info from SQL.
Expand All @@ -256,7 +257,8 @@ type ColumnOption struct {
// Stored is only for ColumnOptionGenerated, default is false.
Stored bool
// Refer is used for foreign key.
Refer *ReferenceDef
Refer *ReferenceDef
StrValue string
}

// Accept implements Node Accept interface.
Expand Down
Loading

0 comments on commit ca23903

Please sign in to comment.