~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_index.h

mergeĀ lp:~hingo/drizzle/drizzle-auth_ldap-fix-and-docs

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
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_STATEMENT_DROP_INDEX_H
22
 
#define DRIZZLED_STATEMENT_DROP_INDEX_H
 
21
#pragma once
23
22
 
 
23
#include <drizzled/alter_info.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 DropIndex : public Statement
34
30
{
35
31
public:
36
 
  DropIndex(Session *in_session)
37
 
    :
38
 
      Statement(in_session)
39
 
  {}
 
32
  DropIndex(Session *in_session) :
 
33
    Statement(in_session)
 
34
  {
 
35
    set_command(SQLCOM_DROP_INDEX);
 
36
  }
40
37
 
41
38
  bool execute();
42
39
  message::Table create_table_proto;
47
44
 
48
45
} /* namespace drizzled */
49
46
 
50
 
#endif /* DRIZZLED_STATEMENT_DROP_INDEX_H */