File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -583,17 +583,16 @@ def cascade(table):
583
583
print ("Nothing to delete." )
584
584
if transaction :
585
585
self .connection .cancel_transaction ()
586
+ elif not transaction :
587
+ print ("Delete completed" )
588
+ elif not safemode or user_choice ("Commit deletes?" , default = "no" ) == "yes" :
589
+ self .connection .commit_transaction ()
590
+ if safemode :
591
+ print ("Deletes committed." )
586
592
else :
587
- if not safemode or user_choice ("Commit deletes?" , default = "no" ) == "yes" :
588
- if transaction :
589
- self .connection .commit_transaction ()
590
- if safemode :
591
- print ("Deletes committed." )
592
- else :
593
- if transaction :
594
- self .connection .cancel_transaction ()
595
- if safemode :
596
- print ("Deletes cancelled" )
593
+ self .connection .cancel_transaction ()
594
+ if safemode :
595
+ print ("Deletes cancelled" )
597
596
return delete_count
598
597
599
598
def drop_quick (self ):
You can’t perform that action at this time.
0 commit comments