• unknown's avatar
    Fixed BUG#3157: Crash if stored procedure contains IF EXISTS, · ac06195c
    unknown authored
    and BUG#336: Subselects with tables does not work as values for
    local SP variables (which was closed before with a temp. fix, but not
    actually fixed).
    
    
    mysql-test/r/sp-error.result:
      Moved test case for BUG#336 to sp.test, as it's not generating an error any longer.
    mysql-test/r/sp.result:
      Move test case for BUG#336 from sp-error.test and added new test case
      for BUG#3157.
    mysql-test/t/sp-error.test:
      Moved test case for BUG#336 to sp.test, as it's not generating an error any longer.
    mysql-test/t/sp.test:
      Move test case for BUG#336 from sp-error.test and added new test case
      for BUG#3157.
    sql/sp_head.cc:
      Open and close tables in set, jump-if[-not] and freturn instructions if
      the value expression is a subselect.
    sql/sp_head.h:
      Store tables in set, jump-if[-not] and freturn instructions if
      the value expression is a subselect.
    sql/sql_yacc.yy:
      Store tables in set, jump-if[-not] and freturn instructions if
      the value expression is a subselect.
    ac06195c
sp-error.test 9.12 KB