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):
191
191
return None
192
192
193
193
def _commit (self ):
194
+ if not self .features .supports_transactions :
195
+ return
194
196
if self .session :
195
197
self .session .commit_transaction ()
196
198
self .session .end_session ()
197
199
self .session = None
198
200
199
201
def _rollback (self ):
202
+ if not self .features .supports_transactions :
203
+ return
200
204
if self .session :
201
205
self .session .abort_transaction ()
202
206
self .session = None
@@ -207,9 +211,13 @@ def _start_session(self):
207
211
self .session .start_transaction ()
208
212
209
213
def _start_transaction_under_autocommit (self ):
214
+ if not self .features .supports_transactions :
215
+ return
210
216
self ._start_session ()
211
217
212
218
def _set_autocommit (self , autocommit , force_begin_transaction_with_broken_autocommit = False ):
219
+ if self .features .supports_transactions :
220
+ return
213
221
if not autocommit :
214
222
self ._start_session ()
215
223
You can’t perform that action at this time.
0 commit comments