Skip to content

Commit

Permalink
fix issue of query topn statement get error
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <crazycs520@gmail.com>
  • Loading branch information
crazycs520 committed Dec 17, 2020
1 parent 72c998f commit 6ebd1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiserver/statement/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func QueryTimeRanges(db *gorm.DB) (result []*TimeRange, err error) {
FLOOR(UNIX_TIMESTAMP(summary_end_time)) AS end_time
`).
Table(statementsTable).
Order("summary_begin_time DESC, summary_end_time DESC").
Order("begin_time DESC, end_time DESC").
Find(&result).Error
return
}
Expand Down

0 comments on commit 6ebd1c9

Please sign in to comment.