~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.h

Merge Stewart.

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
39
39
class AlterTable : public CreateTable
40
40
{
41
41
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
 
  }
 
42
  AlterTable(Session *in_session)
 
43
    :
 
44
      CreateTable(in_session)
 
45
  { }
48
46
 
49
47
  bool execute();
50
48
};
52
50
} /* namespace statement */
53
51
 
54
52
 
55
 
bool alter_table(Session *session,
56
 
                 drizzled::identifier::Table &original_table_identifier,
57
 
                 drizzled::identifier::Table &new_table_identifier,
 
53
bool alter_table(Session *session, char *new_db, char *new_name,
58
54
                 HA_CREATE_INFO *create_info,
59
 
                 const message::Table &original_proto,
60
 
                 message::Table &create_proto,
 
55
                 message::Table *create_proto,
61
56
                 TableList *table_list,
62
57
                 AlterInfo *alter_info,
63
 
                 uint32_t order_num, Order *order, bool ignore);
 
58
                 uint32_t order_num, order_st *order, bool ignore);
64
59
 
65
60
} /* namespace drizzled */
66
61
#endif /* DRIZZLED_STATEMENT_ALTER_TABLE_H */