? 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
tapac
03/19/2019, 6:57 AM
Nullable columns could produce
null
on insert and that's not the 'null == value was absent from insert'
s
spand
03/19/2019, 9:08 AM
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.