~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.h

Rename of handler to Cursor.  You would not believe how long I have wanted
to do that.

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
class Session;
 
27
 
26
28
namespace drizzled
27
29
{
28
 
class Session;
29
 
class TableList;
30
 
 
31
 
namespace message
32
 
{
33
 
  class Table;
34
 
}
35
 
 
36
30
namespace statement
37
31
{
38
32
 
39
33
class AlterTable : public CreateTable
40
34
{
41
35
public:
42
 
  AlterTable(Session *in_session, Table_ident *ident, drizzled::ha_build_method build_arg);
43
 
 
44
 
  virtual bool is_alter() const
 
36
  AlterTable(Session *in_session)
 
37
    :
 
38
      CreateTable(in_session)
 
39
  { }
 
40
 
 
41
  bool execute();
 
42
};
 
43
 
 
44
} /* end namespace statement */
 
45
 
 
46
} /* end namespace drizzled */
 
47
 
 
48
class Session;
 
49
class TableList;
 
50
 
 
51
namespace drizzled
 
52
{
 
53
  namespace message
45
54
  {
46
 
    return true;
 
55
    class Table;
47
56
  }
48
 
 
49
 
  bool execute();
50
 
};
51
 
 
52
 
} /* namespace statement */
53
 
 
54
 
 
55
 
bool alter_table(Session *session,
56
 
                 drizzled::identifier::Table &original_table_identifier,
57
 
                 drizzled::identifier::Table &new_table_identifier,
58
 
                 HA_CREATE_INFO *create_info,
59
 
                 const message::Table &original_proto,
60
 
                 message::Table &create_proto,
61
 
                 TableList *table_list,
62
 
                 AlterInfo *alter_info,
63
 
                 uint32_t order_num, Order *order, bool ignore);
64
 
 
65
 
} /* namespace drizzled */
 
57
}
 
58
 
 
59
/** @TODO This should die with I_S engine work from Padraig */
 
60
bool mysql_create_like_schema_frm(Session* session,
 
61
                                  TableList* schema_table,
 
62
                                  HA_CREATE_INFO *create_info,
 
63
                                  drizzled::message::Table* table_proto);
 
64
 
66
65
#endif /* DRIZZLED_STATEMENT_ALTER_TABLE_H */