~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rename_table.h

  • Committer: Monty Taylor
  • Date: 2009-12-25 08:50:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1255.
  • Revision ID: mordred@inaugust.com-20091225085015-83sux5qsvy312gew
MEM_ROOT == memory::Root

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.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
26
class Session;
29
27
class TableList;
30
28
 
 
29
namespace drizzled
 
30
{
31
31
namespace statement
32
32
{
33
33
 
34
34
class RenameTable : public Statement
35
35
{
36
36
public:
37
 
  RenameTable(Session *in_session) :
38
 
    Statement(in_session)
39
 
  {
40
 
    getSession()->getLex()->sql_command= SQLCOM_RENAME_TABLE;
41
 
  }
 
37
  RenameTable(Session *in_session)
 
38
    :
 
39
      Statement(in_session)
 
40
  {}
42
41
 
43
42
  bool execute();
44
43
 
55
54
 
56
55
};
57
56
 
58
 
} /* namespace statement */
 
57
} /* end namespace statement */
59
58
 
60
 
} /* namespace drizzled */
 
59
} /* end namespace drizzled */
61
60
 
62
61
#endif /* DRIZZLED_STATEMENT_RENAME_TABLE_H */