~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_columns.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:
57
57
  is_columns_primed(false),
58
58
  column_iterator(0)
59
59
{
 
60
  if (not isShowQuery())
 
61
   return;
 
62
 
60
63
  statement::Show *select= static_cast<statement::Show *>(getSession().lex->statement);
61
64
 
62
65
  if (not select->getShowTable().empty() && not select->getShowSchema().empty())