Skip to content

Commit

Permalink
CB-4919 update results fix (#2509)
Browse files Browse the repository at this point in the history
  • Loading branch information
yagudin10 authored Mar 28, 2024
1 parent 66f6ccb commit 8004db0
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,16 @@ public WebSQLExecuteInfo updateResultsDataBatch(
isAutoCommitEnabled = txnManager.isAutoCommit();
if (txnManager.isSupportsTransactions() && isAutoCommitEnabled) {
txnManager.setAutoCommit(monitor, false);
savepoint = txnManager.setSavepoint(monitor, null);
revertToAutoCommit = true;
}
if (!txnManager.isAutoCommit() && txnManager.supportsSavepoints()) {
try {
savepoint = txnManager.setSavepoint(monitor, null);
} catch (Throwable e) {
// May be savepoints not supported
log.debug("Can't set savepoint", e);
}
}
}
try {
Map<String, Object> options = Collections.emptyMap();
Expand Down

0 comments on commit 8004db0

Please sign in to comment.