~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 05:18:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2009.
  • Revision ID: brian@tangent.org-20101218051830-lswb13hfiqbia74o
Adding user identifier that makes use of a shared ptr to handle concurrency
issues around looking at the state of a connection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  if (not identifier.isValid())
77
77
    return false;
78
78
 
79
 
  if (not plugin::Authorization::isAuthorized(getSession()->getSecurityContext(), identifier))
 
79
  if (not plugin::Authorization::isAuthorized(getSession()->user(), identifier))
80
80
    return false;
81
81
 
82
82
  if (not is_if_not_exists)