From ea26916be0ea693b6aefc46f3eeb62e44b8d7cb0 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Fri, 19 Apr 2024 19:33:10 +0200 Subject: feat: Add barebones tcp server --- db/db.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/db.go b/db/db.go index b28dea2..61f3bb5 100644 --- a/db/db.go +++ b/db/db.go @@ -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 { -- cgit v1.2.3