~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_STATEMENT_FLUSH_H
22
 
#define DRIZZLED_STATEMENT_FLUSH_H
 
21
#pragma once
23
22
 
 
23
#include <drizzled/sql_lex.h>
24
24
#include <drizzled/statement.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
class Session;
29
 
 
30
 
namespace statement
31
 
{
 
26
namespace drizzled {
 
27
namespace statement {
32
28
 
33
29
class Flush : public Statement
34
30
{
35
31
public:
36
 
  Flush(Session *in_session)
37
 
    :
 
32
  Flush(Session *in_session) :
38
33
    Statement(in_session),
39
34
    flush_log(false),
40
35
    flush_tables(false),
41
36
    flush_tables_with_read_lock(false),
42
37
    flush_status(false),
43
38
    flush_global_status(false)
44
 
  {}
 
39
  {
 
40
    set_command(SQLCOM_FLUSH);
 
41
    lex().type= 0;
 
42
  }
45
43
 
46
44
  bool execute();
47
45
 
83
81
 
84
82
} /* namespace drizzled */
85
83
 
86
 
#endif /* DRIZZLED_STATEMENT_FLUSH_H */