~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "drizzled/lex_string.h"
29
29
#include "drizzled/thr_lock.h"
30
30
 
 
31
namespace drizzled
 
32
{
 
33
 
 
34
namespace internal
 
35
{
 
36
typedef struct st_io_cache IO_CACHE;
 
37
}
 
38
 
31
39
class Table;
32
40
class Field;
33
 
typedef struct st_io_cache IO_CACHE;
34
41
 
35
42
typedef struct st_keyfile_info {        /* used with ha_info() */
36
43
  unsigned char ref[MAX_REFLENGTH];             /* Pointer to current row */
120
127
struct st_read_record;                          /* For referense later */
121
128
class Session;
122
129
class Cursor;
123
 
namespace drizzled { namespace optimizer { class SqlSelect; } }
 
130
namespace optimizer { class SqlSelect; }
124
131
 
125
132
typedef struct st_read_record {                 /* Parameter to read_record */
126
133
  Table *table;                 /* Head-form */
128
135
  Table **forms;                        /* head and ref forms */
129
136
  int (*read_record)(struct st_read_record *);
130
137
  Session *session;
131
 
  drizzled::optimizer::SqlSelect *select;
 
138
  optimizer::SqlSelect *select;
132
139
  uint32_t cache_records;
133
140
  uint32_t ref_length,struct_length,reclength,rec_cache_size,error_offset;
134
141
  uint32_t index;
136
143
  unsigned char *record;
137
144
  unsigned char *rec_buf;                /* to read field values  after filesort */
138
145
  unsigned char *cache,*cache_pos,*cache_end,*read_positions;
139
 
  IO_CACHE *io_cache;
 
146
  internal::IO_CACHE *io_cache;
140
147
  bool print_error, ignore_not_found_rows;
141
148
  JoinTable *do_insideout_scan;
142
149
} READ_RECORD;
143
150
 
144
151
typedef int *(*update_var)(Session *, struct drizzle_show_var *);
145
152
 
 
153
} /* namespace drizzled */
 
154
 
146
155
        /* Bits in form->status */
147
156
#define STATUS_NO_RECORD        (1+2)   /* Record isn't usably */
148
157
#define STATUS_GARBAGE          1