~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/select.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-08 04:22:33 UTC
  • mto: (1115.3.4 captain)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: osullivan.padraig@gmail.com-20090808042233-q0z88zc490z3f3r7
Renamed the Command class to be Statement. Renamed the command directory to
statement and also the command header file to statement. Updated various
source files to reflect this renaming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/statement.h>
25
25
 
 
26
class Session;
 
27
 
26
28
namespace drizzled
27
29
{
28
 
class Session;
29
 
 
30
30
namespace statement
31
31
{
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
 
 
39
35
public:
40
 
  Select(Session *in_session)
 
36
  Select(enum enum_sql_command in_comm_type,
 
37
         Session *in_session)
41
38
    :
42
 
      Statement(in_session)
 
39
      Statement(in_session),
 
40
      type(in_comm_type)
43
41
  {}
44
42
 
45
 
  void setShowPredicate(const std::string &schema_arg, const std::string &table_arg)
46
 
  {
47
 
    show_schema= schema_arg;
48
 
    show_table= table_arg;
49
 
  }
50
 
 
51
 
  const std::string getShowSchema()
52
 
  {
53
 
    return show_schema;
54
 
  }
55
 
 
56
 
  const std::string getShowTable()
57
 
  {
58
 
    return show_table;
59
 
  }
60
 
 
61
43
  bool execute();
 
44
 
 
45
private:
 
46
  enum enum_sql_command type;
62
47
};
63
48
 
64
 
} /* namespace statement */
65
 
} /* namespace drizzled */
66
 
 
67
 
#endif /* DRIZZLED_STATEMENT_SELECT_H */
 
49
} /* end namespace statement */
 
50
 
 
51
} /* end namespace drizzled */
 
52
 
 
53
#endif /* DRIZZLED_STATEMENT_DEFAULT_SELECT_H */