diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/db.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -56,7 +56,8 @@ func (d *DB) SelectDict(ctx context.Context, query string, limit int) ([]*Word, word, line FROM words WHERE word MATCH ? - ORDER BY rank;`, + ORDER BY rank + LIMIT ?;`, query, limit, ) if err != nil { |