openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Bauer (JIRA)" <>
Subject [jira] Resolved: (OPENJPA-1333) Oracle driver returns incorrect update count on batched insert
Date Thu, 01 Oct 2009 16:15:23 GMT


Jeremy Bauer resolved OPENJPA-1333.

       Resolution: Fixed
    Fix Version/s: 2.0.0-M3

This problem can be corrected by:

- Disabling statement batching by setting the batchLimit to zero.  This has performance implications
but produces the correct behavior on the version 10 JDBC driver.  Statement batching can be
disabled by setting the following persistence property:

<property name="openjpa.jdbc.DBDictionary" value="batchLimit=0"/>


- Using version of the Oracle JDBC driver.  The issue is corrected in this level
of JDBC driver.

> Oracle driver returns incorrect update count on batched insert
> --------------------------------------------------------------
>                 Key: OPENJPA-1333
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.0-M3
>         Environment: Oracle 10g Server.  Oracle JDBC driver.
>            Reporter: Jeremy Bauer
>            Assignee: Jeremy Bauer
>             Fix For: 2.0.0-M3
> The org.apache.openjpa.persistence.kernel.TestProxies2 jUnit test fails with an OptimisticLockException
when using the Oracle JDBC driver.  The source of the failure is that one of the
batched insert operations is returning an update count that is less than expected.  There
is are no SQL exception or SQL warnings.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message