~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command.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:
44
44
class SqlCommand
45
45
{
46
46
public:
47
 
  SqlCommand(enum enum_sql_command in_comm_type,
48
 
             Session *in_session)
49
 
    : comm_type(in_comm_type),
 
47
  SqlCommand(Session *in_session)
 
48
    : 
50
49
      session(in_session)
51
50
  {}
52
51
 
62
61
protected:
63
62
 
64
63
  /**
65
 
   * The type of this command.
66
 
   */
67
 
  enum enum_sql_command comm_type;
68
 
 
69
 
  /**
70
64
   * A session handler.
71
65
   */
72
66
  Session *session;