• unknown's avatar
    Fixed BUG#3339: Stored procedures in nonexistent schemas are uncallable. · 44d2934f
    unknown authored
    Also added some related security tests and corrected related error messages.
    
    
    mysql-test/r/sp-error.result:
      New test case for BUG#3339, and updated results for other modified error messages.
    mysql-test/r/sp-security.result:
      Added tests for creating procedures in another database with and wihout
      access rights.
    mysql-test/t/sp-error.test:
      New test case for BUG#3339.
    mysql-test/t/sp-security.test:
      Added tests for creating procedures in another database with and wihout
      access rights.
    sql/sp.cc:
      Check existance (and access rights) for database when creating a stored routine.
    sql/sp.h:
      New error return value for sp_create_* functions, for non existing database.
    sql/sql_parse.cc:
      Check error return for create stored routine (non existing database),
      and corrected the error output for some other commands. (Use qualified
      name, not just name.)
    44d2934f
sp.h 2.69 KB