~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.h

  • Committer: Lee Bieber
  • Date: 2010-11-07 19:34:48 UTC
  • mfrom: (1910.1.2 build)
  • Revision ID: kalebral@gmail.com-20101107193448-64kdu912qej354sh
Merge Stewart - including adapting and expanding the "differences from mysql" page from the wiki.
Merge Stewart - fix bug 668143: drizzleslap with --commit runs second iteration data load in a transaction

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;
 
42
  AlterTable(Session *in_session) :
 
43
    CreateTable(in_session)
 
44
  { 
47
45
  }
48
46
 
49
47
  bool execute();
53
51
 
54
52
 
55
53
bool alter_table(Session *session,
56
 
                 drizzled::identifier::Table &original_table_identifier,
57
 
                 drizzled::identifier::Table &new_table_identifier,
 
54
                 drizzled::TableIdentifier &original_table_identifier,
 
55
                 drizzled::TableIdentifier &new_table_identifier,
58
56
                 HA_CREATE_INFO *create_info,
59
57
                 const message::Table &original_proto,
60
58
                 message::Table &create_proto,