def cancel(self):
        """ Cancel current statement
        """
        conn = self._assert_open()
        conn._try_activate_cursor(self)
        self._session.cancel_if_pending()
Cancel current statement