~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show.h

  • Committer: Monty Taylor
  • Date: 2011-03-15 16:10:15 UTC
  • mfrom: (2235.3.1 staging)
  • Revision ID: mordred@inaugust.com-20110315161015-qceggirmf3cct7cw
Merge in libdrizzle install changes, doc changes and some header
refactoring.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef PLUGIN_SHOW_DICTIONARY_SHOW_H
22
 
#define PLUGIN_SHOW_DICTIONARY_SHOW_H
 
21
#pragma once
23
22
 
24
23
namespace show_dictionary {
25
24
 
31
30
  {
32
31
  }
33
32
 
34
 
  bool visable() { return false; }
 
33
  bool visible() const { return false; }
35
34
 
36
 
  class Generator : public drizzled::plugin::TableFunction::Generator 
 
35
  class Generator : public drizzled::plugin::TableFunction::Generator
37
36
  {
38
37
  public:
39
38
    Generator(drizzled::Field **arg):
42
41
 
43
42
    bool isShowQuery()
44
43
    {
45
 
      if (getSession().lex->statement->isShow())
46
 
       return true;
47
 
 
48
 
      return false;
 
44
      return statement().isShow();
49
45
    }
50
46
  };
51
47
 
57
53
 
58
54
} /* namespace show_dictionary */
59
55
 
60
 
#endif /* PLUGIN_SHOW_DICTIONARY_SHOW_H */