Skip to content

Commit 648d267

Browse files
Batch stmt instance was being updated only on the first time the proc executed (#305)
Co-authored-by: claudia <cmurialdo@gmail.com>
1 parent 238aa3d commit 648d267

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

java/src/main/java/com/genexus/db/DataStoreProvider.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,8 @@ public void initializeBatch(int cursorIdx, int batchSize, Object instance, Strin
136136
}
137137
}while (context.globals.Gx_eop == DefaultExceptionErrorHandler.ERROPT_RETRY);
138138

139-
if (cursor.getBatchSize() == 0){
140-
141-
cursor.setBatchSize(batchSize);
142-
cursor.onCommitEvent(instance, method);
143-
}
139+
cursor.setBatchSize(batchSize);
140+
cursor.onCommitEvent(instance, method);
144141
cursor.notInUse();
145142
try {
146143
Application.getConnectionManager(context).getConnection(

0 commit comments

Comments
 (0)