mirror of
https://github.com/apache/openjpa.git
synced 2025-02-08 11:06:01 +00:00
OPENJPA-630 Enforce no statement batching support if batchlimit set to 1.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@665915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a4d905f345
commit
110e3ff4b0
@ -117,7 +117,8 @@ public class BatchingPreparedStatementManagerImpl extends
|
|||||||
*/
|
*/
|
||||||
private boolean isBatchDisabled(RowImpl row) {
|
private boolean isBatchDisabled(RowImpl row) {
|
||||||
boolean rtnVal = true;
|
boolean rtnVal = true;
|
||||||
if (getBatchLimit() != 0 && !isBatchDisabled()) {
|
int limit = getBatchLimit();
|
||||||
|
if ((limit < 0 || limit > 1) && !isBatchDisabled()) {
|
||||||
OpenJPAStateManager sm = row.getPrimaryKey();
|
OpenJPAStateManager sm = row.getPrimaryKey();
|
||||||
ClassMapping cmd = null;
|
ClassMapping cmd = null;
|
||||||
if (sm != null)
|
if (sm != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user