~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.h

  • Committer: Brian Aker
  • Date: 2008-08-22 15:37:17 UTC
  • mfrom: (365.2.9 codestyle)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: brian@tangent.org-20080822153717-kqyxqh0xcnvfjrzh
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
typedef struct st_table_ref
71
71
{
72
72
  bool          key_err;
73
 
  uint          key_parts;                ///< num of ...
74
 
  uint          key_length;               ///< length of key_buff
75
 
  int           key;                      ///< key no
76
 
  uchar         *key_buff;                ///< value to look for with key
77
 
  uchar         *key_buff2;               ///< key_buff+key_length
 
73
  uint32_t      key_parts;                ///< num of ...
 
74
  uint32_t      key_length;               ///< length of key_buff
 
75
  int32_t       key;                      ///< key no
 
76
  unsigned char *key_buff;                ///< value to look for with key
 
77
  unsigned char *key_buff2;               ///< key_buff+key_length
78
78
  store_key     **key_copy;               //
79
79
  Item          **items;                  ///< val()'s for each keypart
80
80
  /*  
96
96
  key_part_map  null_rejecting;
97
97
  table_map     depend_map;               ///< Table depends on these tables.
98
98
  /* null byte position in the key_buf. Used for REF_OR_NULL optimization */
99
 
  uchar          *null_ref_key;
 
99
  unsigned char *null_ref_key;
100
100
 
101
101
  /*
102
102
    true <=> disable the "cache" as doing lookup with the same key value may
116
116
    Where source data is located (i.e. this points to somewhere in 
117
117
    tableX->record[0])
118
118
  */
119
 
  uchar *str;
120
 
  uint length; /* Length of data at *str, in bytes */
121
 
  uint blob_length; /* Valid IFF blob_field != 0 */
 
119
  unsigned char *str;
 
120
  uint32_t length; /* Length of data at *str, in bytes */
 
121
  uint32_t blob_length; /* Valid IFF blob_field != 0 */
122
122
  Field_blob *blob_field;
123
123
  bool strip; /* true <=> Strip endspaces ?? */
124
124
 
128
128
 
129
129
typedef struct st_join_cache 
130
130
{
131
 
  uchar *buff;
132
 
  uchar *pos;    /* Start of free space in the buffer */
133
 
  uchar *end;
134
 
  uint records;  /* # of row cominations currently stored in the cache */
135
 
  uint record_nr;
136
 
  uint ptr_record; 
 
131
  unsigned char *buff;
 
132
  unsigned char *pos;    /* Start of free space in the buffer */
 
133
  unsigned char *end;
 
134
  uint32_t records;  /* # of row cominations currently stored in the cache */
 
135
  uint32_t record_nr;
 
136
  uint32_t ptr_record; 
137
137
  /* 
138
138
    Number of fields (i.e. cache_field objects). Those correspond to table
139
139
    columns, and there are also special fields for
141
141
     - table's null-complementation byte
142
142
     - [new] table's rowid.
143
143
  */
144
 
  uint fields; 
145
 
  uint length; 
146
 
  uint blobs;
 
144
  uint32_t fields; 
 
145
  uint32_t length; 
 
146
  uint32_t blobs;
147
147
  CACHE_FIELD *field;
148
148
  CACHE_FIELD **blob_ptr;
149
149
  SQL_SELECT *select;