Skip to content

Commit

Permalink
*: parser subpartition option for 'partition by range columns' (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored Mar 18, 2019
1 parent 7d694bd commit 2575f2d
Show file tree
Hide file tree
Showing 4 changed files with 1,109 additions and 1,098 deletions.
3 changes: 3 additions & 0 deletions ast/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1790,6 +1790,9 @@ func (n *PartitionDefinition) Restore(ctx *RestoreCtx) error {
ctx.WriteKeyWord(" VALUES LESS THAN ")
ctx.WritePlain("(")
for k, less := range n.LessThan {
if k != 0 {
ctx.WritePlain(", ")
}
if err := less.Restore(ctx); err != nil {
return errors.Annotatef(err, "An error occurred while restore PartitionDefinition.LessThan[%d]", k)
}
Expand Down
Loading

0 comments on commit 2575f2d

Please sign in to comment.