~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_columns.cc

  • Committer: Brian Aker
  • Date: 2010-04-07 01:48:44 UTC
  • Revision ID: brian@gaz-20100407014844-y4eqxot1zbiiwa1a
Fix for bug on show tables.:w
:x

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
{
57
57
  statement::Select *select= static_cast<statement::Select *>(getSession().lex->statement);
58
58
 
59
 
  table_name.append(select->getShowTable().c_str());
60
 
  TableIdentifier identifier(select->getShowSchema().c_str(), select->getShowTable().c_str());
 
59
  if (not select->getShowTable().empty() && not select->getShowSchema().empty())
 
60
  {
 
61
    table_name.append(select->getShowTable().c_str());
 
62
    TableIdentifier identifier(select->getShowSchema().c_str(), select->getShowTable().c_str());
61
63
 
62
 
  is_tables_primed= plugin::StorageEngine::getTableDefinition(getSession(),
63
 
                                                              identifier,
64
 
                                                              table_proto);
 
64
    is_tables_primed= plugin::StorageEngine::getTableDefinition(getSession(),
 
65
                                                                identifier,
 
66
                                                                table_proto);
 
67
  }
65
68
}
66
69
 
67
70
bool ShowColumns::Generator::nextColumnCore()