summaryrefslogtreecommitdiff
path: root/sql/records.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/records.h')
-rw-r--r--sql/records.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/records.h b/sql/records.h
index 95464a11b4b..fa9bfe3df59 100644
--- a/sql/records.h
+++ b/sql/records.h
@@ -25,6 +25,7 @@ class handler;
struct TABLE;
class THD;
class SQL_SELECT;
+class Copy_field;
/**
A context for reading through a single table using a chosen access method:
@@ -63,11 +64,17 @@ struct READ_RECORD
struct st_io_cache *io_cache;
bool print_error, ignore_not_found_rows;
+ /*
+ SJ-Materialization runtime may need to read fields from the materialized
+ table and unpack them into original table fields:
+ */
+ Copy_field *copy_field;
+ Copy_field *copy_field_end;
public:
READ_RECORD() {}
};
-void init_read_record(READ_RECORD *info, THD *thd, TABLE *reg_form,
+bool init_read_record(READ_RECORD *info, THD *thd, TABLE *reg_form,
SQL_SELECT *select, int use_record_cache,
bool print_errors, bool disable_rr_cache);
void init_read_record_idx(READ_RECORD *info, THD *thd, TABLE *table,