• Davi Arnaut's avatar
    Bug#47734: Assertion failed: ! is_set() when locking a view with non-existing definer · ee66332c
    Davi Arnaut authored
    The problem was that a failure to open a view wasn't being
    properly handled. When opening a view with unknown definer,
    the open procedure would be treated as successful and would
    later crash when attempting to lock the view (which wasn't
    opened to begin with).
    
    The solution is to skip further processing when opening a
    table if it fails with a fatal error.
    
    mysql-test/r/view.result:
      Add test case result for Bug#47734.
    mysql-test/t/view.test:
      Add test case for Bug#47734.
    sql/sql_base.cc:
      Skip further processing if opening a table failed due to
      a fatal error (for the statement).
    ee66332c
view.result 115 KB