~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/show_status.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:
37
37
class ShowStatus : public SqlCommand
38
38
{
39
39
public:
40
 
  ShowStatus(enum enum_sql_command in_comm_type,
41
 
             Session *in_session,
 
40
  ShowStatus(Session *in_session,
42
41
             pthread_mutex_t *in_show_lock)
43
42
    :
44
 
      SqlCommand(in_comm_type, in_session),
 
43
      SqlCommand(in_session),
45
44
      show_lock(in_show_lock)
46
45
  {}
47
46
 
49
48
 
50
49
private:
51
50
 
 
51
  static const enum enum_sql_command type= SQLCOM_SHOW_STATUS;
 
52
 
52
53
  /**
53
54
   * Mutex needed by the SHOW STATUS command.
54
55
   */