Skip to content

Commit

Permalink
Merge pull request pingcap#156 from pingcap/shenli/fix-master
Browse files Browse the repository at this point in the history
plans: Fix build error
  • Loading branch information
qiuyesuifeng committed Sep 15, 2015
2 parents 6adf665 + f6577d4 commit 3be1f44
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plan/plans/orderby.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,7 @@ func (r *OrderByDefaultPlan) fetchAll(ctx context.Context) error {
}

if val != nil {
var ordered bool
val, ordered, err1 = types.IsOrderedType(val)
if err1 != nil {
return err1
}

if !ordered {
if !types.IsOrderedType(val) {
return errors.Errorf("cannot order by %v (type %T)", val, val)
}
}
Expand Down

0 comments on commit 3be1f44

Please sign in to comment.