1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2009 Sun Microsystems, Inc.
4
* Copyright (C) 2009 Sun Microsystems
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
39
40
class AlterTable : public CreateTable
42
AlterTable(Session *in_session, Table_ident *ident, drizzled::ha_build_method build_arg);
44
virtual bool is_alter() const
43
AlterTable(Session *in_session)
45
CreateTable(in_session)
52
51
} /* namespace statement */
55
bool alter_table(Session *session,
56
drizzled::identifier::Table &original_table_identifier,
57
drizzled::identifier::Table &new_table_identifier,
54
bool alter_table(Session *session, char *new_db, char *new_name,
58
55
HA_CREATE_INFO *create_info,
59
const message::Table &original_proto,
60
message::Table &create_proto,
56
message::Table *create_proto,
61
57
TableList *table_list,
62
58
AlterInfo *alter_info,
63
uint32_t order_num, Order *order, bool ignore);
59
uint32_t order_num, order_st *order, bool ignore);
60
/** @TODO This should die with I_S engine work from Padraig */
61
bool create_like_schema_frm(Session* session,
62
TableList* schema_table,
63
HA_CREATE_INFO *create_info,
64
message::Table* table_proto);
65
66
} /* namespace drizzled */
66
67
#endif /* DRIZZLED_STATEMENT_ALTER_TABLE_H */