~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.h

  • Committer: Stewart Smith
  • Date: 2010-02-15 03:55:09 UTC
  • mto: (1273.13.96 build)
  • mto: This revision was merged to the branch mainline in revision 1308.
  • Revision ID: stewart@flamingspork.com-20100215035509-y6sry4q4yymph2by
move SUBSTR, SUBSTRING and SUBSTR_INDEX to plugins. add parser hooks for substr being a plugin now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
public:
36
36
  Flush(Session *in_session)
37
37
    :
38
 
    Statement(in_session),
39
 
    flush_log(false),
40
 
    flush_tables(false),
41
 
    flush_tables_with_read_lock(false),
42
 
    flush_status(false),
43
 
    flush_global_status(false)
 
38
      Statement(in_session)
44
39
  {}
45
40
 
46
41
  bool execute();
47
42
 
48
43
private:
49
 
  bool flush_log;
50
 
  bool flush_tables;
51
 
  bool flush_tables_with_read_lock;
52
 
  bool flush_status;
53
 
  bool flush_global_status;
54
 
 
55
 
public:
56
 
  void setFlushLog(bool f) { flush_log= f; }
57
 
  void setFlushTables(bool f) { flush_tables= f; }
58
 
  void setFlushTablesWithReadLock(bool f) {
59
 
    flush_tables= flush_tables_with_read_lock= f;
60
 
  }
61
 
  void setFlushStatus(bool f) { flush_status= f; }
62
 
  void setFlushGlobalStatus(bool f) { flush_global_status= f; }
63
 
 
64
 
private:
65
44
 
66
45
  /**
67
46
   * Reload/resets privileges and the different caches.