We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1a229a + b8c7c99 commit 8eabd3eCopy full SHA for 8eabd3e
src/oracle/connection/transaction.rs
@@ -132,4 +132,17 @@ impl TransactionManager<OciConnection> for OCITransactionManager {
132
) -> &mut diesel::connection::TransactionManagerStatus {
133
&mut conn.transaction_manager.status
134
}
135
+
136
+ fn is_broken_transaction_manager(conn: &mut OciConnection) -> bool {
137
+ let transaction_depth = Self::get_transaction_depth(conn);
138
139
+ match transaction_depth {
140
+ Err(_) => true,
141
+ Ok(None) => false,
142
+ Ok(Some(v)) if conn.transaction_manager.is_test_transaction && u32::from(v) == 1 => {
143
+ false
144
+ }
145
+ Ok(Some(_)) => true,
146
147
148
0 commit comments