~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/select.h

  • Committer: Brian Aker
  • Date: 2010-10-23 21:00:18 UTC
  • mto: This revision was merged to the branch mainline in revision 1876.
  • Revision ID: brian@tangent.org-20101023210018-ggodzmjdpkavx2xe
What was once old, is now new again. Seperated out show from select.

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
 
 
40
35
public:
41
 
  Select(Session *in_session)
42
 
    :
43
 
      Statement(in_session),
44
 
      if_exists(false)
 
36
  Select(Session *in_session) :
 
37
    Statement(in_session)
45
38
  {}
46
39
 
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
 
 
78
40
  bool execute();
79
41
};
80
42