~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.h

Modernize our call to the parser, no more casting required.

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
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
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)
37
 
    :
 
36
  Flush(Session *in_session) :
38
37
    Statement(in_session),
39
38
    flush_log(false),
40
39
    flush_tables(false),
41
40
    flush_tables_with_read_lock(false),
42
41
    flush_status(false),
43
42
    flush_global_status(false)
44
 
  {}
 
43
  {
 
44
    getSession()->getLex()->sql_command= SQLCOM_FLUSH;
 
45
    getSession()->getLex()->type= 0;
 
46
  }
45
47
 
46
48
  bool execute();
47
49