~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 10:14:05 UTC
  • mfrom: (2008.1.3 clean)
  • Revision ID: brian@tangent.org-20101218101405-qjbse29shi9coklg
Merge of user identifier work

Show diffs side-by-side

added added

removed removed

Lines of Context:
619
619
bool mysql_change_db(Session *session, SchemaIdentifier &schema_identifier)
620
620
{
621
621
 
622
 
  if (not plugin::Authorization::isAuthorized(session->getSecurityContext(), schema_identifier))
 
622
  if (not plugin::Authorization::isAuthorized(session->user(), schema_identifier))
623
623
  {
624
624
    /* Error message is set in isAuthorized */
625
625
    return true;