96
95
/* For TMP tables, should be pulled out as a class */
97
96
void updateCreateInfo(HA_CREATE_INFO *create_info);
98
void setup_tmp_table_column_bitmaps();
97
void setup_tmp_table_column_bitmaps(unsigned char *bitmaps);
99
98
bool create_myisam_tmp_table(KEY *keyinfo,
100
99
MI_COLUMNDEF *start_recinfo,
101
100
MI_COLUMNDEF **recinfo,
163
162
const char *alias; /* alias or table name */
164
163
unsigned char *null_flags;
165
164
my_bitmap_map *bitmap_init_value;
166
std::bitset<MAX_FIELDS> def_read_set, def_write_set, tmp_set; /* containers */
167
std::bitset<MAX_FIELDS> *read_set, *write_set; /* Active column sets */
165
MY_BITMAP def_read_set, def_write_set, tmp_set; /* containers */
166
MY_BITMAP *read_set, *write_set; /* Active column sets */
169
168
The ID of the query that opened and is using this table. Has different
170
169
meanings depending on the table type.
291
290
void reset_item_list(List<Item> *item_list) const;
292
291
void clear_column_bitmaps(void);
293
292
void prepare_for_position(void);
294
void mark_columns_used_by_index_no_reset(uint32_t index, std::bitset<MAX_FIELDS> *map);
293
void mark_columns_used_by_index_no_reset(uint32_t index, MY_BITMAP *map);
295
294
void mark_columns_used_by_index(uint32_t index);
296
295
void restore_column_maps_after_mark_index();
297
296
void mark_auto_increment_column(void);
298
297
void mark_columns_needed_for_update(void);
299
298
void mark_columns_needed_for_delete(void);
300
299
void mark_columns_needed_for_insert(void);
301
inline void column_bitmaps_set(std::bitset<MAX_FIELDS> *read_set_arg,
302
std::bitset<MAX_FIELDS> *write_set_arg)
300
inline void column_bitmaps_set(MY_BITMAP *read_set_arg,
301
MY_BITMAP *write_set_arg)
304
303
read_set= read_set_arg;
305
304
write_set= write_set_arg;
307
306
file->column_bitmaps_signal();
309
inline void column_bitmaps_set_no_signal(std::bitset<MAX_FIELDS> *read_set_arg,
310
std::bitset<MAX_FIELDS> *write_set_arg)
308
inline void column_bitmaps_set_no_signal(MY_BITMAP *read_set_arg,
309
MY_BITMAP *write_set_arg)
312
311
read_set= read_set_arg;
313
312
write_set= write_set_arg;
316
void restore_column_map(std::bitset<MAX_FIELDS> *old);
315
void restore_column_map(my_bitmap_map *old);
318
std::bitset<MAX_FIELDS> *use_all_columns(std::bitset<MAX_FIELDS> *bitmap);
317
my_bitmap_map *use_all_columns(MY_BITMAP *bitmap);
319
318
inline void use_all_columns()
321
320
column_bitmaps_set(&s->all_set, &s->all_set);