File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -191,12 +191,16 @@ def _driver_info(self):
191191 return None
192192
193193 def _commit (self ):
194+ if not self .features .supports_transactions :
195+ return
194196 if self .session :
195197 self .session .commit_transaction ()
196198 self .session .end_session ()
197199 self .session = None
198200
199201 def _rollback (self ):
202+ if not self .features .supports_transactions :
203+ return
200204 if self .session :
201205 self .session .abort_transaction ()
202206 self .session = None
@@ -207,9 +211,13 @@ def _start_session(self):
207211 self .session .start_transaction ()
208212
209213 def _start_transaction_under_autocommit (self ):
214+ if not self .features .supports_transactions :
215+ return
210216 self ._start_session ()
211217
212218 def _set_autocommit (self , autocommit , force_begin_transaction_with_broken_autocommit = False ):
219+ if self .features .supports_transactions :
220+ return
213221 if not autocommit :
214222 self ._start_session ()
215223
You can’t perform that action at this time.
0 commit comments