~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/select.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-07 18:03:24 UTC
  • mto: (1115.3.4 captain)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: osullivan.padraig@gmail.com-20090807180324-b93afsws66vuyk2z
Applied Jay's suggestion of not having the type of the statement passed in
to the SqlCommand constructor. Made the type variable of the derived classes
a static const private member since the type never changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  Select(enum enum_sql_command in_comm_type,
37
37
         Session *in_session)
38
38
    :
39
 
      SqlCommand(in_comm_type, in_session)
 
39
      SqlCommand(in_session),
 
40
      type(in_comm_type)
40
41
  {}
41
42
 
42
43
  bool execute();
 
44
 
 
45
private:
 
46
  enum enum_sql_command type;
43
47
};
44
48
 
45
49
} /* end namespace command */