Commit 10d04713 authored by Ricki Hirner's avatar Ricki Hirner 🐑

BatchOperation: explicitly allow null values

parent ce2f3952
Pipeline #204797593 passed with stages
in 4 minutes and 37 seconds
......@@ -148,7 +148,7 @@ class BatchOperation(
var selection: String? = null
var selectionArguments: Array<String>? = null
val values = mutableMapOf<String, Any>()
val values = mutableMapOf<String, Any?>()
val valueBackrefs = mutableMapOf<String, Int>()
var yieldAllowed = false
......@@ -172,10 +172,7 @@ class BatchOperation(
}
fun withValue(key: String, value: Any?): CpoBuilder {
if (value != null)
values[key] = value
else
values -= key
values[key] = value
return this
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment