I'm trying to figure out what happens when I collect, say, 100 rows to be inserted into a table, and, before the COMMIT, an error occurs. The error in this case is caused by the client application which tries to insert a row with a duplicate primary key (no need to detail why the app does this, but let's assume it's not possible to change this).
The situation is that the APP asked the DB to record, say, 50 rows and then it sends one row with a duplicate primary key. The DB refuses to receive this row and the APP collects an error message. Then, the APP sends another 50 rows, without any problems. Then the COMMIT comes to the scene.
Is it possible that the second group of 50 rows are lost because of the duplicate key error?