Skip to content

Commit

Permalink
address reviewer's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhexuany committed Apr 25, 2018
1 parent 740a576 commit 8a64c58
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions executor/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,8 @@ func (e *ShowExec) fetchShowCreateTable() error {
}
for i, def := range partitionInfo.Definitions {
lessThans := ""
multipleLt := false
for j, lessThan := range def.LessThan {
if j > 0 {
lessThans = lessThans + "," + lessThan
multipleLt = true
} else {
lessThans = lessThan
}
}
lessThans = strings.Join(def.LessThan, ",")
multipleLt := len(def.LessThan) > 1

var parDef string
if multipleLt {
Expand Down

0 comments on commit 8a64c58

Please sign in to comment.