mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 17:55:06 +00:00
Fix sql comparison with optional values
This commit is contained in:
parent
abb903c5ea
commit
6a3386ce66
@ -32,7 +32,7 @@ case class Column(name: String, ns: String = "", alias: String = "") {
|
|||||||
def is[A: Put](ov: Option[A]): Fragment =
|
def is[A: Put](ov: Option[A]): Fragment =
|
||||||
ov match {
|
ov match {
|
||||||
case Some(v) => f ++ fr" = $v"
|
case Some(v) => f ++ fr" = $v"
|
||||||
case None => fr"is null"
|
case None => f ++ fr"is null"
|
||||||
}
|
}
|
||||||
|
|
||||||
def is(c: Column): Fragment =
|
def is(c: Column): Fragment =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user