~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-07 13:41:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110707134107-6mi7pauiatxtf4oe
Rename strmake to strdup (standard name)

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_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 */