21
21
/* Structs that defines the Table */
23
#ifndef DRIZZLED_TABLE_SINGULAR_H
24
#define DRIZZLED_TABLE_SINGULAR_H
23
#ifndef DRIZZLED_TABLE_SHARE_INSTANCE_H
24
#define DRIZZLED_TABLE_SHARE_INSTANCE_H
32
class Singular : public Table
35
bool _has_variable_width;
29
class TableShareInstance : public TableShare
39
_share(message::Table::INTERNAL),
40
_has_variable_width(false)
44
Singular(Session *session, List<CreateField> &field_list);
46
TableShare *getMutableShare(void)
51
void setShare(TableShare *)
56
const TableShare *getShare(void) const
61
bool hasShare() const { return true; }
65
bool hasVariableWidth() const
67
return _has_variable_width;
70
bool create_myisam_tmp_table(KeyInfo *keyinfo,
71
MI_COLUMNDEF *start_recinfo,
72
MI_COLUMNDEF **recinfo,
74
void setup_tmp_table_column_bitmaps();
75
bool open_tmp_table();
77
void setVariableWidth()
79
_has_variable_width= true;
34
TableShareInstance(TableIdentifier::Type type_arg) :
37
private_table.setShare(this);
42
return &private_table;
47
private_table.free_tmp_table(private_table.in_use);
85
} /* namespace table */
86
51
} /* namespace drizzled */
88
#endif /* DRIZZLED_TABLE_SINGULAR_H */
53
#endif /* DRIZZLED_TABLE_SHARE_INSTANCE_H */