~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_table.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

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
 
#pragma once
 
21
#ifndef DRIZZLED_STATEMENT_DROP_TABLE_H
 
22
#define DRIZZLED_STATEMENT_DROP_TABLE_H
22
23
 
23
24
#include <drizzled/statement.h>
24
25
 
25
 
namespace drizzled {
26
 
namespace statement {
 
26
namespace drizzled
 
27
{
 
28
class Session;
 
29
 
 
30
namespace statement
 
31
{
27
32
 
28
33
class DropTable : public Statement
29
34
{
31
36
  DropTable(Session *in_session) :
32
37
    Statement(in_session)
33
38
  {
34
 
    set_command(SQLCOM_DROP_TABLE);
 
39
    getSession()->getLex()->sql_command= SQLCOM_DROP_TABLE;
35
40
  }
36
41
 
37
42
  bool execute();
38
 
 
39
43
  /* True if "IF EXISTS" */
40
44
  bool drop_if_exists;
41
45
 
47
51
 
48
52
} /* namespace drizzled */
49
53
 
 
54
#endif /* DRIZZLED_STATEMENT_DROP_TABLE_H */