~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_create_schema.cc

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  if (not isShowQuery())
43
43
   return;
44
44
 
45
 
  statement::Show *select= static_cast<statement::Show *>(getSession().getLex()->statement);
 
45
  statement::Show& select= static_cast<statement::Show&>(statement());
46
46
 
47
 
  if (not select->getShowSchema().empty())
 
47
  if (not select.getShowSchema().empty())
48
48
  {
49
 
    schema_name.append(select->getShowTable());
50
 
    identifier::Schema identifier(select->getShowSchema());
 
49
    schema_name.append(select.getShowTable());
 
50
    identifier::Schema identifier(select.getShowSchema());
51
51
 
52
52
    if (not plugin::Authorization::isAuthorized(*getSession().user(),
53
53
                                                identifier, false))
58
58
 
59
59
    schema_message= plugin::StorageEngine::getSchemaDefinition(identifier);
60
60
 
61
 
    if_not_exists= select->getShowExists();
 
61
    if_not_exists= select.getShowExists();
62
62
  }
63
63
}
64
64