(self, xid: Any)
| 1202 | self.__in_begin = False |
| 1203 | |
| 1204 | def _prepare_twophase_impl(self, xid: Any) -> None: |
| 1205 | if self._has_events or self.engine._has_events: |
| 1206 | self.dispatch.prepare_twophase(self, xid) |
| 1207 | |
| 1208 | assert isinstance(self._transaction, TwoPhaseTransaction) |
| 1209 | try: |
| 1210 | self.engine.dialect.do_prepare_twophase(self, xid) |
| 1211 | except BaseException as e: |
| 1212 | self._handle_dbapi_exception(e, None, None, None, None) |
| 1213 | |
| 1214 | def _rollback_twophase_impl(self, xid: Any, is_prepared: bool) -> None: |
| 1215 | if self._has_events or self.engine._has_events: |
no test coverage detected