Thread
#exposed
    s

    spand

    3 years ago
    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.
    tapac

    tapac

    3 years ago
    Nullable columns could produce
    null
    on insert and that's not the 'null == value was absent from insert'
    s

    spand

    3 years ago
    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.