~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.h

Merge Stewart's dead code removal

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, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
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
23
23
 
24
24
#include <drizzled/statement/create_table.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
26
class Session;
29
27
class TableList;
30
28
 
 
29
namespace drizzled
 
30
{
 
31
 
31
32
namespace message
32
33
{
33
34
  class Table;
39
40
class AlterTable : public CreateTable
40
41
{
41
42
public:
42
 
  AlterTable(Session *in_session, Table_ident *ident, drizzled::ha_build_method build_arg);
43
 
 
44
 
  virtual bool is_alter() const
45
 
  {
46
 
    return true;
47
 
  }
 
43
  AlterTable(Session *in_session)
 
44
    :
 
45
      CreateTable(in_session)
 
46
  { }
48
47
 
49
48
  bool execute();
50
49
};
52
51
} /* namespace statement */
53
52
 
54
53
 
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);
64
65
 
65
66
} /* namespace drizzled */
66
67
#endif /* DRIZZLED_STATEMENT_ALTER_TABLE_H */