Fix RPC GET filters bugs with not/{plain,phrase}fts operators (#980)

This commit is contained in:
Steve Chávez
2017-09-26 20:07:36 -07:00
committed by Joe Nelson
parent 3ccae4bb8b
commit a6cce691b5
5 changed files with 58 additions and 5 deletions
+6 -1
View File
@@ -179,8 +179,13 @@ data Operation = Op Operator SingleVal |
Fts FtsMode (Maybe Language) SingleVal |
Join QualifiedIdentifier ForeignKey deriving (Eq, Show)
data FtsMode = Normal | Plain | Phrase deriving (Eq, Show)
data FtsMode = Normal | Plain | Phrase deriving Eq
instance Show FtsMode where
show Normal = mzero
show Plain = "plain"
show Phrase = "phrase"
type Language = Text
-- | Represents a single value in a filter, e.g. id=eq.singleval
type SingleVal = Text
-- | Represents a list value in a filter, e.g. id=in.(val1,val2,val3)