367
366
enum enum_mark_columns mark_used_columns;
368
367
inline void* alloc(size_t size)
370
return alloc_root(mem_root,size);
369
return mem_root->alloc_root(size);
372
371
inline void* calloc(size_t size)
375
if ((ptr= alloc_root(mem_root,size)))
374
if ((ptr= mem_root->alloc_root(size)))
376
375
memset(ptr, 0, size);
379
378
inline char *strdup(const char *str)
381
return strdup_root(mem_root,str);
380
return mem_root->strdup_root(str);
383
382
inline char *strmake(const char *str, size_t size)
385
return strmake_root(mem_root,str,size);
384
return mem_root->strmake_root(str,size);
387
386
inline void *memdup(const void *str, size_t size)
389
return memdup_root(mem_root,str,size);
388
return mem_root->memdup_root(str, size);
391
390
inline void *memdup_w_gap(const void *str, size_t size, uint32_t gap)
394
if ((ptr= alloc_root(mem_root,size+gap)))
393
if ((ptr= mem_root->alloc_root(size + gap)))
395
394
memcpy(ptr,str,size);
1421
1420
bool lock_table_name_if_not_cached(const char *db,
1422
1421
const char *table_name, Table **table);
1424
typedef drizzled::hash_map<std::string, message::Table> TableMessageCache;
1423
typedef unordered_map<std::string, message::Table> TableMessageCache;
1425
1424
TableMessageCache table_message_cache;
1427
1426
bool storeTableMessage(TableIdentifier &identifier, message::Table &table_message);
1475
1474
int setup_conds(TableList *leaves, COND **conds);
1476
1475
int lock_tables(TableList *tables, uint32_t count, bool *need_reopen);
1477
Table *create_virtual_tmp_table(List<CreateField> &field_list);
1480
1482
Return the default storage engine