Goetz Markgraf
06/20/2023, 2:06 PMWHERE id = <some value> AND (type = 0 OR type is null)
I tried:
.select { id eq <some value> }
.andWhere { (type eq 0) or (type.isNull() }
However, the last statement gives an error:
Type mismatch.
Required: Op<Boolean>
Found: Unit
Can anyone help please?
Thank you very muchDominik Sandjaja
06/20/2023, 2:32 PM.select { id eq <someValue> }
.andWhere { Op.Build { (type eq 0) or (type.isNull()) } }
?Goetz Markgraf
06/21/2023, 6:05 AMOp.build
again, the error was gone.
Maybe, IntelliJ imported a wrong or
function.
Now the following code is fine:
.select { id eq <somevalue> }
.andWhere { (type eq 0) or (type.isNull()) }