Another thread: What is the use case for having `I...
# exposed
s
Another thread: What is the use case for having
InsertStatement.get
return
T?
? The only use in the project that ought to use this functionality at all is
fun <Key:Comparable<Key>, T: IdTable<Key>> T.insertIgnoreAndGetId
. It seems to me that it ought to be changed to
T
and instead define a
InsertStatement.tryGet
for the much rarer use so can avoid having !! just to retrieve a generated key.
t
Nullable columns could produce
null
on insert and that's not the 'null == value was absent from insert'
s
But since
T
isnt contrained to
Any
it would just be ie.
Int?
which would work. Or I am not understanding you correctly. I have submitted a pull request with the change and a test that shows retrieval of null values.
👌 1