From 3541f90e7d47cbf950f7c5ca02bbc193691231c4 Mon Sep 17 00:00:00 2001 From: Darren Li Date: Fri, 27 Dec 2024 20:52:43 +1100 Subject: [PATCH] Added missing DISTINCT in SELECT for picking words within range --- lib/index.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ml b/lib/index.ml index 873f90e..570be05 100644 --- a/lib/index.ml +++ b/lib/index.ml @@ -789,7 +789,7 @@ module Search = struct | Some (start, end_inc) -> ( iter_stmt db {| - SELECT + SELECT DISTINCT word.id AS word_id, word.word AS word FROM word