~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.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_ALTER_TABLE_H
22
 
#define DRIZZLED_STATEMENT_ALTER_TABLE_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/statement/create_table.h>
25
24
 
26
 
namespace drizzled
27
 
{
28
 
class Session;
29
 
class TableList;
30
 
 
31
 
namespace message
32
 
{
33
 
  class Table;
34
 
}
35
 
 
36
 
namespace statement
37
 
{
 
25
namespace drizzled {
 
26
namespace statement {
38
27
 
39
28
class AlterTable : public CreateTable
40
29
{
41
30
public:
42
 
  AlterTable(Session *in_session) :
43
 
    CreateTable(in_session)
44
 
  { 
 
31
  AlterTable(Session *in_session, Table_ident *ident);
 
32
 
 
33
  virtual bool is_alter() const
 
34
  {
 
35
    return true;
45
36
  }
46
37
 
47
38
  bool execute();
51
42
 
52
43
 
53
44
bool alter_table(Session *session,
54
 
                 drizzled::TableIdentifier &original_table_identifier,
55
 
                 drizzled::TableIdentifier &new_table_identifier,
 
45
                 drizzled::identifier::Table &original_table_identifier,
 
46
                 drizzled::identifier::Table &new_table_identifier,
56
47
                 HA_CREATE_INFO *create_info,
57
48
                 const message::Table &original_proto,
58
49
                 message::Table &create_proto,
61
52
                 uint32_t order_num, Order *order, bool ignore);
62
53
 
63
54
} /* namespace drizzled */
64
 
#endif /* DRIZZLED_STATEMENT_ALTER_TABLE_H */