• unknown's avatar
    Avoid spurious error when restoring INFORMATION_SCHEMA as the current · e0607f0a
    unknown authored
    database after failing to execute a stored procedure in an inaccessible
    database. (Bug #12318)
    
    
    mysql-test/r/sp-security.result:
      Update results
    mysql-test/t/sp-security.test:
      Add regression test
    sql/mysql_priv.h:
      Add additional argument to mysql_change_db()
    sql/sp.cc:
      Use mysql_change_db(), get rid of sp_change_db().
    sql/sp.h:
      Get rid of sp_change_db().
    sql/sql_db.cc:
      Handle no_access_check flag to mysql_change_db, and remove the send_ok()
      call.
    sql/sql_parse.cc:
      Add extra argument to mysql_change_db(), and call send_ok() after
      successful calls to same (since it no longer does it for us).
    e0607f0a
mysql_priv.h 58.5 KB