'Execute a ROLLBACK.'

def do_rollback(self, dbapi_connection):

    try:
        dbapi_connection.rollback()
    except:
        if (self.server_version_info < (3, 23, 15)):
            args = sys.exc_info()[1].args
            if (args and (args[0] == 1064)):
                return
        raise
