Fix InnerConnection decode_result / changes

Fix #931
This commit is contained in:
gwenn
2021-06-13 10:39:36 +02:00
parent ee7f7b89d5
commit 9cdf80f3ca
4 changed files with 6 additions and 6 deletions

View File

@@ -832,7 +832,7 @@ impl Connection {
#[inline]
fn decode_result(&self, code: c_int) -> Result<()> {
self.db.borrow_mut().decode_result(code)
self.db.borrow().decode_result(code)
}
/// Return the number of rows modified, inserted or deleted by the most
@@ -840,7 +840,7 @@ impl Connection {
/// connection.
#[inline]
fn changes(&self) -> usize {
self.db.borrow_mut().changes()
self.db.borrow().changes()
}
/// Test for auto-commit mode.