From ed3553eb13d2b4645dc1000e4ef1ccecfa7fcafd Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 21 Oct 2017 16:20:38 +0200 Subject: [PATCH] parentheses m) --- Handler/Search.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Handler/Search.hs b/Handler/Search.hs index 6d500be..23efc89 100755 --- a/Handler/Search.hs +++ b/Handler/Search.hs @@ -33,9 +33,9 @@ getSearchR = do case res of FormSuccess query -> do mediumList <- runDB $ do - a <- rawSql "select ?? from medium where ? % any(string_to_array(title, ' ');" + a <- rawSql "select ?? from medium where ? % any(string_to_array(title, ' '))" [PersistText query] - b <- rawSql "select ?? from medium where ? % any(string_to_array(description, ' ');" + b <- rawSql "select ?? from medium where ? % any(string_to_array(description, ' '))" [PersistText query] return $ sortBy (\ sa sb -> compare (T.unpack $ mediumTitle $ entityVal sa)