~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_column.h

  • Committer: Jay Pipes
  • Date: 2009-11-16 22:00:02 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1229.
  • Revision ID: jpipes@serialcoder-20091116220002-rdsha64utt41i8w8
Adds INFORMATION_SCHEMA views for the transaction log:

TRANSACTION_LOG
TRANSACTION_LOG_ENTRIES
TRANSACTION_LOG_TRANSACTIONS

Adds a new user-defined function:

PRINT_TRANSACTION_MESSAGE(filename, offset)

Adds tests for all of the above

Implementation notes:

An indexer now runs when transaction messages are applied
to the transaction log.  It creates a simple index of the
transaction log entries.  This index is used when the
information schema views' fillTable() method is called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_ALTER_COLUMN_H
21
21
#define DRIZZLED_ALTER_COLUMN_H
22
22
 
23
 
#include "drizzled/memory/sql_alloc.h"
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
namespace memory { class Root; }
 
23
#include <drizzled/sql_alloc.h>
29
24
 
30
25
class Item;
 
26
typedef struct st_mem_root MEM_ROOT;
31
27
 
32
 
class AlterColumn :public memory::SqlAlloc {
 
28
class AlterColumn :public Sql_alloc {
33
29
public:
34
30
  const char *name;
35
31
  Item *def;
42
38
    Used to make a clone of this object for ALTER/CREATE TABLE
43
39
    @sa comment for Key_part_spec::clone
44
40
  */
45
 
  AlterColumn *clone(memory::Root *mem_root) const
 
41
  AlterColumn *clone(MEM_ROOT *mem_root) const
46
42
  {
47
43
    return new (mem_root) AlterColumn(*this);
48
44
  }
49
45
};
50
46
 
51
 
} /* namespace drizzled */
52
 
 
53
47
#endif /* DRIZZLED_ALTER_COLUMN_H */