You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for this awesome tool ;)
I think we should do a null check in bindValuesInBulkInsert for every DB type, not only String.
Because as stated in the documentation for getAsLong for instance:
Returns
the Long value, or null if the value is missing or cannot be converted
In my case, I do not set a value in every column when inserting new rows using a bulkInsert and it yield a NPE.
I think there will be a special case for the _id column. If we haven't set a value for _id we shouldn't set a default one and instead let the system auto_increment this column.
Something like:
Hi,
First of all, thanks for this awesome tool ;)
I think we should do a null check in
bindValuesInBulkInsert
for every DB type, not only String.Because as stated in the documentation for
getAsLong
for instance:In my case, I do not set a value in every column when inserting new rows using a bulkInsert and it yield a NPE.
I think there will be a special case for the
_id
column. If we haven't set a value for_id
we shouldn't set a default one and instead let the systemauto_increment
this column.Something like:
Or, more compact
What do you think?
The text was updated successfully, but these errors were encountered: