255
255
filesort_info_st sort;
259
: s(NULL), field(NULL),
260
file(NULL), next(NULL), prev(NULL),
261
read_set(NULL), write_set(NULL),
262
tablenr(0), db_stat(0),
263
bitmap_init_value(NULL),
264
/* TODO: ensure that MY_BITMAP has a constructor for def_read_set, def_write_set and tmp_set */
266
write_row_record(NULL), insert_values(NULL), key_info(NULL),
267
next_number_field(NULL), found_next_number_field(NULL),
268
timestamp_field(NULL),
269
pos_in_table_list(NULL), group(NULL), alias(NULL), null_flags(NULL),
270
lock_position(0), lock_data_start(0), lock_count(0),
271
used_fields(0), temp_pool_slot(0),
272
status(0), derived_select_number(0), current_lock(F_UNLCK),
273
copy_blobs(false), maybe_null(false), null_row(false),
274
force_index(false), distinct(false), const_table(false),
275
no_rows(false), key_read(false), no_keyread(false),
276
open_placeholder(false), locked_by_name(false), no_cache(false),
277
auto_increment_field_not_null(false), insert_or_update(false),
278
alias_name_used(false), get_fields_in_item_tree(false),
279
query_id(0), quick_condition_rows(0),
280
timestamp_field_type(TIMESTAMP_NO_AUTO_SET), map(0)
282
memset(record, 0, sizeof(unsigned char *) * 2);
284
covering_keys.reset();
289
keys_in_use_for_query.reset();
290
keys_in_use_for_group_by.reset();
291
keys_in_use_for_order_by.reset();
293
memset(quick_rows, 0, sizeof(query_id_t) * MAX_KEY);
294
memset(const_key_parts, 0, sizeof(ha_rows) * MAX_KEY);
296
memset(quick_key_parts, 0, sizeof(unsigned int) * MAX_KEY);
297
memset(quick_n_ranges, 0, sizeof(unsigned int) * MAX_KEY);
299
init_sql_alloc(&mem_root, TABLE_ALLOC_BLOCK_SIZE, 0);
300
memset(&sort, 0, sizeof(filesort_info_st));
303
void reset(Session *session, TableShare *share, uint32_t db_stat_arg)
317
db_stat= db_stat_arg;
319
bitmap_init_value= NULL;
322
memset(record, 0, sizeof(unsigned char *) * 2);
324
write_row_record= NULL;
327
next_number_field= NULL;
328
found_next_number_field= NULL;
329
timestamp_field= NULL;
331
pos_in_table_list= NULL;
342
derived_select_number= 0;
343
current_lock= F_UNLCK;
357
open_placeholder= false;
358
locked_by_name= false;
361
auto_increment_field_not_null= false;
362
insert_or_update= false;
363
alias_name_used= false;
364
get_fields_in_item_tree= false;
367
quick_condition_rows= 0;
369
timestamp_field_type= TIMESTAMP_NO_AUTO_SET;
374
covering_keys.reset();
379
keys_in_use_for_query.reset();
380
keys_in_use_for_group_by.reset();
381
keys_in_use_for_order_by.reset();
383
memset(quick_rows, 0, sizeof(query_id_t) * MAX_KEY);
384
memset(const_key_parts, 0, sizeof(ha_rows) * MAX_KEY);
386
memset(quick_key_parts, 0, sizeof(unsigned int) * MAX_KEY);
387
memset(quick_n_ranges, 0, sizeof(unsigned int) * MAX_KEY);
389
init_sql_alloc(&mem_root, TABLE_ALLOC_BLOCK_SIZE, 0);
390
memset(&sort, 0, sizeof(filesort_info_st));
259
395
/* SHARE methods */
260
396
inline TableShare *getShare() { return s; } /* Get rid of this long term */