I have a question regarding the `fun valueFromDB(v...
# exposed
t
I have a question regarding the
fun valueFromDB(value: kotlin.Any): kotlin.Any
in the
IColumnType
interface. Since columns can be nullable, why is the signature here not allowing null values? This forces implementers to additionally check null somewhere else, and not within a custom column type implementation.
s
What implementers ? Afaik only exposed itself is doing the null checks. (and thus you cannot have special handling for null values I think) Cant you just handle it in
fun readObject(rs: ResultSet, index: Int): Any?
👀 1
t
@spand - thanks for the suggestion, I'll try there.
Yup, that works as expected. Thanks for the hint.