~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/select.h

  • Committer: Brian Aker
  • Date: 2010-10-10 02:07:52 UTC
  • mfrom: (1827.2.3 staging)
  • Revision ID: brian@tangent.org-20101010020752-ktv73isay5dxtvp3
Merge in switch on table_share_instance inheritance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
class Select : public Statement
34
34
{
 
35
  /* These will move out once we have args for table functions */
 
36
  std::string show_schema;
 
37
  std::string show_table;
 
38
  bool if_exists;
 
39
 
35
40
public:
36
 
  Select(Session *in_session) :
37
 
    Statement(in_session)
 
41
  Select(Session *in_session)
 
42
    :
 
43
      Statement(in_session),
 
44
      if_exists(false)
38
45
  {}
39
46
 
 
47
  void setShowPredicate(const std::string &schema_arg, const std::string &table_arg)
 
48
  {
 
49
    show_schema= schema_arg;
 
50
    show_table= table_arg;
 
51
  }
 
52
 
 
53
  void setShowPredicate(const std::string &schema_arg)
 
54
  {
 
55
    show_schema= schema_arg;
 
56
  }
 
57
 
 
58
  void setShowExists(bool arg)
 
59
  {
 
60
    if_exists= arg;
 
61
  }
 
62
 
 
63
  bool getShowExists()
 
64
  {
 
65
    return if_exists;
 
66
  }
 
67
 
 
68
  const std::string getShowSchema()
 
69
  {
 
70
    return show_schema;
 
71
  }
 
72
 
 
73
  const std::string getShowTable()
 
74
  {
 
75
    return show_table;
 
76
  }
 
77
 
40
78
  bool execute();
41
79
};
42
80