~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_item.h

Removed the inclusion of drizzled/field.h in the server_includes header file.

Created a time.h header file and records.h header file. This allowed me to move the declarations of
a number of methods from the server_includes header file into these respective header files. I
updated numerous files to reflect this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_CACHED_ITEM_H
21
21
#define DRIZZLED_CACHED_ITEM_H
22
22
 
23
 
#include <drizzled/sql_alloc.h>
24
 
#include <drizzled/sql_string.h>
 
23
#include "drizzled/sql_alloc.h"
 
24
#include "drizzled/sql_string.h"
 
25
#include "drizzled/my_decimal.h"
25
26
 
26
27
class Item;
27
28
class Session;
 
29
class Field;
28
30
 
29
31
class Cached_item :public Sql_alloc
30
32
{
81
83
  uint32_t length;
82
84
 
83
85
public:
84
 
  Cached_item_field(Field *arg_field) : field(arg_field)
85
 
  {
86
 
    field= arg_field;
87
 
    /* TODO: take the memory allocation below out of the constructor. */
88
 
    buff= (unsigned char*) sql_calloc(length=field->pack_length());
89
 
  }
 
86
  Cached_item_field(Field *arg_field);
90
87
  bool cmp(void);
91
88
};
92
89