~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_indexes.cc

  • Committer: Andrew Hutchings
  • Date: 2011-01-06 21:14:45 UTC
  • mto: This revision was merged to the branch mainline in revision 2062.
  • Revision ID: andrew@linuxjedi.co.uk-20110106211445-x9md31qb4awygsg4
Refix show_dictionary plugin crash when not using 'SHOW' to access.
Added isShow() to Statement which is true on a Show statement object and is checked by show_dictionary to make sure it is a SHOW that is executed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  index_iterator(0),
45
45
  index_part_iterator(0)
46
46
{
 
47
  if (not isShowQuery())
 
48
    return;
 
49
 
47
50
  statement::Show *select= static_cast<statement::Show *>(getSession().lex->statement);
48
51
 
49
52
  if (not select->getShowTable().empty() && not select->getShowSchema().empty())