mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 19:09:32 +00:00
commit
d8a56d7482
@ -31,7 +31,7 @@ object ExprUtil {
|
|||||||
case DirectionExpr(flag) =>
|
case DirectionExpr(flag) =>
|
||||||
DirectionExpr(!flag)
|
DirectionExpr(!flag)
|
||||||
case _ =>
|
case _ =>
|
||||||
expr
|
NotExpr(reduce(inner))
|
||||||
}
|
}
|
||||||
|
|
||||||
case m: MacroExpr =>
|
case m: MacroExpr =>
|
||||||
|
@ -43,4 +43,11 @@ class ItemQueryGeneratorTest extends FunSuite {
|
|||||||
assertEquals(cond, expect)
|
assertEquals(cond, expect)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test("!conc:*") {
|
||||||
|
val q = ItemQueryParser.parseUnsafe("!conc:*")
|
||||||
|
val cond = ItemQueryGenerator(now, tables, Ident.unsafe("coll"))(q)
|
||||||
|
val expect = not(tables.concPers.name.like("%") || tables.concEquip.name.like("%"))
|
||||||
|
assertEquals(cond, expect)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user