~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_tables.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:
39
39
  if (not isShowQuery())
40
40
   return;
41
41
 
42
 
  statement::Show *select= static_cast<statement::Show *>(getSession().getLex()->statement);
 
42
  statement::Show& select= static_cast<statement::Show&>(statement());
43
43
 
44
 
  if (not select->getShowSchema().empty())
 
44
  if (not select.getShowSchema().empty())
45
45
  {
46
 
    schema_name.append(select->getShowSchema());
 
46
    schema_name.append(select.getShowSchema());
47
47
    assert(not schema_name.empty());
48
48
  }
49
49
}
94
94
{
95
95
  if (not next())
96
96
    return false;
97
 
  
 
97
 
98
98
  fill();
99
99
 
100
100
  return true;