~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/load.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:
33
33
class Load : public SqlCommand
34
34
{
35
35
public:
36
 
  Load(enum enum_sql_command in_comm_type,
37
 
       Session *in_session)
 
36
  Load(Session *in_session)
38
37
    :
39
 
      SqlCommand(in_comm_type, in_session)
 
38
      SqlCommand(in_session)
40
39
  {}
41
40
 
42
41
  bool execute();
 
42
 
 
43
private:
 
44
  static const enum enum_sql_command type= SQLCOM_LOAD;
43
45
};
44
46
 
45
47
} /* end namespace command */