• unknown's avatar
    Fixed BUG#15231: Stored procedure bug with not found condition handler · 93244290
    unknown authored
      Make the distinction between "exception conditions" and "completion
      conditions" (warning and "no data") as defined by the standard. The latter
      should not terminate a routine if no handler is found in the lexical scope.
    
    
    mysql-test/r/sp.result:
      New test case for BUG#15231.
      Moved part of the test for BUG#7049 to the new testcase (since it was actually
      an example of 15231).
    mysql-test/t/sp.test:
      New test case for BUG#15231.
      Moved part of the test for BUG#7049 to the new testcase (since it was actually
      an example of 15231).
    sql/sp_rcontext.cc:
      Only search for matching condition handlers in caller's contexts if it's
      an exception conditition.
    93244290
sp_rcontext.cc 11.6 KB