#NEWLINE# def submit_rollback( self , cont , isolation_level = 0 ) : #NEWLINE# #INDENT# if IS_TDS72_PLUS ( self ) : #NEWLINE# #INDENT# self . messages = [ ] #NEWLINE# self . cancel_if_pending ( ) #NEWLINE# w = self . _writer #NEWLINE# with self . querying_context ( TDS7_TRANS ) : #NEWLINE# #INDENT# self . _start_query ( ) #NEWLINE# flags = 0 #NEWLINE# if cont : #NEWLINE# #INDENT# flags |= 1 #NEWLINE# #UNINDENT# w . pack ( self . _commit_rollback_tran_struct72_hdr , 8 , 0 , flags ) #NEWLINE# if cont : #NEWLINE# #INDENT# w . pack ( self . _continue_tran_struct72 , isolation_level , 0 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . submit_plain_query ( ( 'IF @@TRANCOUNT > 0 ROLLBACK BEGIN TRANSACTION' if cont else 'IF @@TRANCOUNT > 0 ROLLBACK' ) ) #NEWLINE# self . conn . tds72_transaction = ( 1 if cont else 0 )