We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59291eb commit 30216b6Copy full SHA for 30216b6
crates/duckdb/src/transaction.rs
@@ -94,8 +94,7 @@ impl Transaction<'_> {
94
95
#[inline]
96
fn commit_(&mut self) -> Result<()> {
97
- self.conn.execute_batch("COMMIT")?;
98
- Ok(())
+ self.conn.execute_batch("COMMIT")
99
}
100
101
/// A convenience method which consumes and rolls back a transaction.
@@ -106,8 +105,7 @@ impl Transaction<'_> {
106
105
107
108
fn rollback_(&mut self) -> Result<()> {
109
- self.conn.execute_batch("ROLLBACK")?;
110
+ self.conn.execute_batch("ROLLBACK")
111
112
113
/// Consumes the transaction, committing or rolling back according to the
0 commit comments