• unknown's avatar
    Implemented SP CONDITIONs and HANDLERs, with the extension of handling · 4deedf62
    unknown authored
    MySQL error codes as well.
    (No UNDO HANDLERs yet, and no SIGNAL or RESIGNAL.)
    WL#850
    
    
    Docs/sp-imp-spec.txt:
      Spec of CONDITIONs and HANDLERs (and updated some old stuff too).
    Docs/sp-implemented.txt:
      Updated info about caching, CONDITIONs and HANDLERs.
    include/mysqld_error.h:
      New error for undeclared CONDITION.
    libmysqld/Makefile.am:
      New file: sp_rcontext.cc.
    mysql-test/r/sp-error.result:
      New tests for CONDITIONs and HANDLERs.
    mysql-test/r/sp.result:
      New tests for CONDITIONs and HANDLERs.
    mysql-test/t/sp-error.test:
      New tests for CONDITIONs and HANDLERs.
    mysql-test/t/sp.test:
      New tests for CONDITIONs and HANDLERs.
    sql/Makefile.am:
      New file: sp_rcontext.cc.
    sql/lex.h:
      New symbols for CONDITIONs, HANDLERs and CURSORs.
    sql/mysqld.cc:
      Catch error if we have a handler for it.
    sql/protocol.cc:
      Catch error if we have a handler for it.
    sql/share/czech/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/danish/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/dutch/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/english/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/estonian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/french/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/german/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/greek/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/hungarian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/italian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/japanese/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/korean/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/norwegian-ny/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/norwegian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/polish/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/portuguese/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/romanian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/russian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/serbian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/slovak/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/spanish/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/swedish/errmsg.txt:
      New error for undeclared CONDITION.
    sql/share/ukrainian/errmsg.txt:
      New error for undeclared CONDITION.
    sql/sp_head.cc:
      New HANDLER code.
    sql/sp_head.h:
      New HANDLER code.
    sql/sp_pcontext.cc:
      New CONDITION and HANDLER code.
    sql/sp_pcontext.h:
      New CONDITION and HANDLER code.
    sql/sp_rcontext.h:
      New CONDITION and HANDLER code.
    sql/sql_yacc.yy:
      New CONDITION and HANDLER code.
    4deedf62
sp_head.cc 16.7 KB