Fix sql comparison with optional values

This commit is contained in:
Eike Kettner 2020-10-19 00:29:41 +02:00
parent abb903c5ea
commit 6a3386ce66

View File

@ -32,7 +32,7 @@ case class Column(name: String, ns: String = "", alias: String = "") {
def is[A: Put](ov: Option[A]): Fragment =
ov match {
case Some(v) => f ++ fr" = $v"
case None => fr"is null"
case None => f ++ fr"is null"
}
def is(c: Column): Fragment =