Closed vllama closed 3 years ago
Sometimes when inserts fail in postgres this function returns id of 0, but there is no exception thrown.
I would expect the Npgsql exception to be bubbled up. It seems to happen if you are missing a non null column in your poco.
var id = await Database.InsertAsync(entity);
Might be related to InsertAsync not returning the right ID #361
What version are you using?
Sorry I missed that, Latest 4.0.2
Could you try 5.0.0-rc1? otherwise provide a small sample that reproduces the issue.
Sometimes when inserts fail in postgres this function returns id of 0, but there is no exception thrown.
I would expect the Npgsql exception to be bubbled up. It seems to happen if you are missing a non null column in your poco.
var id = await Database.InsertAsync(entity);
Might be related to InsertAsync not returning the right ID #361