~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.h

  • Committer: Brian Aker
  • Date: 2010-10-28 17:12:01 UTC
  • mfrom: (1887.1.3 merge)
  • Revision ID: brian@tangent.org-20101028171201-baj6l1bnntn1s4ad
Merge in POTFILES changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
33
33
class Flush : public Statement
34
34
{
35
35
public:
36
 
  Flush(Session *in_session) :
 
36
  Flush(Session *in_session)
 
37
    :
37
38
    Statement(in_session),
38
39
    flush_log(false),
39
40
    flush_tables(false),
40
41
    flush_tables_with_read_lock(false),
41
 
    flush_status(false),
42
 
    flush_global_status(false)
43
 
  {
44
 
    getSession()->getLex()->sql_command= SQLCOM_FLUSH;
45
 
    getSession()->getLex()->type= 0;
46
 
  }
 
42
    flush_status(false)
 
43
  {}
47
44
 
48
45
  bool execute();
49
46
 
52
49
  bool flush_tables;
53
50
  bool flush_tables_with_read_lock;
54
51
  bool flush_status;
55
 
  bool flush_global_status;
56
52
 
57
53
public:
58
54
  void setFlushLog(bool f) { flush_log= f; }
61
57
    flush_tables= flush_tables_with_read_lock= f;
62
58
  }
63
59
  void setFlushStatus(bool f) { flush_status= f; }
64
 
  void setFlushGlobalStatus(bool f) { flush_global_status= f; }
65
60
 
66
61
private:
67
62