Skip to content

Commit

Permalink
[parser] parser,ast: fix create table partition by hash syntax (pin…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored Nov 13, 2018
1 parent 9d9f9a2 commit 45fe768
Show file tree
Hide file tree
Showing 5 changed files with 864 additions and 832 deletions.
1 change: 1 addition & 0 deletions parser/ast/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,4 +890,5 @@ type PartitionOptions struct {
Expr ExprNode
ColumnNames []*ColumnName
Definitions []*PartitionDefinition
Num uint64
}
1 change: 1 addition & 0 deletions parser/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ type PartitionInfo struct {
Enable bool `json:"enable"`

Definitions []PartitionDefinition `json:"definitions"`
Num uint64 `json:"num"`
}

// GetNameByID gets the partition name by ID.
Expand Down
Loading

0 comments on commit 45fe768

Please sign in to comment.