~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.h

  • Committer: Stewart Smith
  • Date: 2010-11-07 04:22:31 UTC
  • mto: (1911.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: stewart@flamingspork.com-20101107042231-ola4sl7j0qvg58tz
fix ARCHIVE storage engine calling exit (lintian warning). Was because we were linking in libinternal into libazio, which links into archive plugin. Just link libinternal into the command line utilities.

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,