~clint-fewbar/ubuntu/natty/drizzle/beta1-fixes

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_indexes.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-03-15 10:41:18 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110315104118-eaf0hvlytjdl4zrf
Tags: 2011.03.13-0ubuntu1
* New upstream release.
* Added slave plugin.
* Removed archive, blackhole and blitzdb plugins.
* Moved location of libdrizzle headers.
* Removed drizzleadmin manpage patch.
* Add drizzle_safe_write_string to symbols.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  if (not isShowQuery())
48
48
    return;
49
49
 
50
 
  statement::Show *select= static_cast<statement::Show *>(getSession().getLex()->statement);
 
50
  statement::Show& select= static_cast<statement::Show&>(statement());
51
51
 
52
 
  if (not select->getShowTable().empty() && not select->getShowSchema().empty())
 
52
  if (not select.getShowTable().empty() && not select.getShowSchema().empty())
53
53
  {
54
 
    table_name.append(select->getShowTable().c_str());
55
 
    identifier::Table identifier(select->getShowSchema().c_str(), select->getShowTable().c_str());
 
54
    table_name.append(select.getShowTable().c_str());
 
55
    identifier::Table identifier(select.getShowSchema().c_str(), select.getShowTable().c_str());
56
56
 
57
57
    if (not plugin::Authorization::isAuthorized(*getSession().user(),
58
58
                                            identifier, false))