Skip to content

Commit 7e7abab

Browse files
Update src/database/oracle/mod.rs
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent df24f94 commit 7e7abab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database/oracle/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Database for OracleDriver {
124124

125125
async fn commit_tx(&mut self) -> Result<Option<QueryResultsWithMetadata>> {
126126
if let Some(OracleTask::TxPending(b)) = self.task.take() {
127-
b.0.commit()?;
127+
tokio::task::spawn_blocking(|| b.0.commit()).await??;
128128
Ok(Some(b.1))
129129
} else {
130130
Ok(None)

0 commit comments

Comments
 (0)