~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Monty Taylor
  • Date: 2010-04-15 19:13:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1476.
  • Revision ID: mordred@inaugust.com-20100415191357-alvsmwpe1dql9ll5
Updated Authorization plugin interface to use new Schema|TableIdentifier
code.
Also - fixed Authorization::pruneSchemaNames to use stl's remove_if and
erase to properly trim down the set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2102
2102
     * to see if it exists so that an unauthorized user cannot phish for
2103
2103
     * table/schema information via error messages
2104
2104
     */
 
2105
    TableIdentifier the_table(tables->db, tables->table_name);
2105
2106
    if (not plugin::Authorization::isAuthorized(getSecurityContext(),
2106
 
                                                string(tables->db),
2107
 
                                                string(tables->table_name)))
 
2107
                                                TableIdentifier(tables->db, tables->table_name)))
2108
2108
    {
2109
2109
      result= -1;                               // Fatal error
2110
2110
      break;