diff options
Diffstat (limited to 'sql/records.h')
-rw-r--r-- | sql/records.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/records.h b/sql/records.h index e97f6b273cc..faf0d13c9a9 100644 --- a/sql/records.h +++ b/sql/records.h @@ -19,9 +19,10 @@ #pragma interface /* gcc class implementation */ #endif +#include "table.h" + struct st_join_table; class handler; -struct TABLE; class THD; class SQL_SELECT; class Copy_field; @@ -58,7 +59,6 @@ struct READ_RECORD SQL_SELECT *select; uint ref_length, reclength, rec_cache_size, error_offset; uchar *ref_pos; /* pointer to form->refpos */ - uchar *record; uchar *rec_buf; /* to read field values after filesort */ uchar *cache,*cache_pos,*cache_end,*read_positions; struct st_sort_addon_field *addon_field; /* Pointer to the fields info */ @@ -67,6 +67,7 @@ struct READ_RECORD void (*unpack)(struct st_sort_addon_field *, uchar *, uchar *); int read_record() { return read_record_func(this); } + uchar *record() const { return table->record[0]; } /* SJ-Materialization runtime may need to read fields from the materialized |