simplify READ_RECORD usage NFC

READ_RECORD read_record;
...
// this
// read_record.read_record(&read_record);
// becomes just
read_record.read_record();
This commit is contained in:
Eugene Kosov 2017-08-25 14:36:13 +03:00 committed by Sergey Vojtovich
commit 5dd8e1bf2d
19 changed files with 64 additions and 62 deletions

View file

@ -55,7 +55,7 @@ struct READ_RECORD
//handler *file;
TABLE **forms; /* head and ref forms */
Unlock_row_func unlock_row;
Read_func read_record;
Read_func read_record_func;
THD *thd;
SQL_SELECT *select;
uint cache_records;
@ -70,6 +70,8 @@ struct READ_RECORD
bool print_error, ignore_not_found_rows;
void (*unpack)(struct st_sort_addon_field *, uchar *, uchar *);
int read_record() { return read_record_func(this); }
/*
SJ-Materialization runtime may need to read fields from the materialized
table and unpack them into original table fields: