Subject Re: [Firebird-Java] Possible bug in batch updates
Author Roman Rokytskyy
Hi,

> ...
> That final ps.executeBatch() throws a GDS Exception: 335544665, a
> primary key violation. Removing the first executeBatch fixes the
> problem, as does simply calling executeUpdate() instead of
> addBatch() executeBatch() each time, which is why I believe it is a
> problem with batching. Please let me know if I can provide more
> info.

Thanks for the report. This is a bug in driver - driver does not clear batch
list after the batch execution. I will fix it tomorrow. Until the new
version is released, please add clearBatch() call after the executeBatch()
call.

Thanks!
Roman