• unknown's avatar
    In order to make ALTER PROCEDURE|FUNCTION work correctly, and in general to · cabd28c6
    unknown authored
    make characteristics (and SHOW) work right, we had to separate the old
    definition blob in the mysql.proc table into separate fields for parameters,
    return type, and body, and handle the characteristics (like SQL SECURITY)
    separately... and then reassemble the CREATE string for parsing, of course.
    This is rather ugly, mostly the parser bit. (Hopefully that will be better
    with the new parser.)
    
    
    Docs/sp-imp-spec.txt:
      Separated the definitions string of the procedure into different columns
      in the mysql.proc schema.
    mysql-test/r/sp.result:
      New characteristics tests.
    mysql-test/t/sp.test:
      New characteristics tests.
    scripts/mysql_create_system_tables.sh:
      Separated the definitions string of the procedure into different columns
      in the mysql.proc schema.
    scripts/mysql_fix_privilege_tables.sql:
      Separated the definitions string of the procedure into different columns
      in the mysql.proc schema.
    sql/sp.cc:
      Separated the definitions string of the procedure into different columns.
      Rewrote much of the code related this (have a assemble the definition
      string from its different parts now) and the way characteristics are now
      handled, in order to make ALTER actually work.
    sql/sp.h:
      Changed prototypes.
    sql/sp_head.cc:
      Rewrote much of the code related to the new mysql.proc schema with separate
      definition fields (have to assemble the definition string from its different
      parts now) and the way characteristics are now handled, in order to make ALTER
      actually work.
    sql/sp_head.h:
      Separated the different parts of the definition strings: name, parameters,
      return type (for functions) and body.
    sql/sql_yacc.yy:
      Separated the different parts of the definition strings: name, parameters,
      return type (for functions) and body.
      This is ugly and messy; hopefully there's a more elegant way to do this
      when the new parser is installed.
    cabd28c6
sp.h 2.26 KB