~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

  • Committer: Brian Aker
  • Date: 2009-12-01 02:39:03 UTC
  • mfrom: (1234.1.4 push)
  • Revision ID: brian@gaz-20091201023903-1id5z7xnup695jaq
Merge of Brian + Jay test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
{
41
41
public:
42
42
  HeapEngine(string name_arg)
43
 
   : drizzled::plugin::StorageEngine(name_arg, 
 
43
   : drizzled::plugin::StorageEngine(name_arg,
 
44
                                     HTON_STATS_RECORDS_IS_EXACT |
 
45
                                     HTON_NULL_IN_KEY |
 
46
                                     HTON_FAST_KEY_READ |
 
47
                                     HTON_NO_BLOBS |
 
48
                                     HTON_HAS_RECORDS |
44
49
                                     HTON_TEMPORARY_ONLY)
45
50
  {
46
51
    addAlias("HEAP");
47
52
  }
48
53
 
49
 
  uint64_t table_flags() const
50
 
  {
51
 
    return (HA_FAST_KEY_READ |
52
 
            HA_NO_BLOBS | HA_NULL_IN_KEY |
53
 
            HA_NO_TRANSACTIONS |
54
 
            HA_HAS_RECORDS |
55
 
            HA_STATS_RECORDS_IS_EXACT);
56
 
  }
57
 
 
58
54
  virtual Cursor *create(TableShare &table,
59
55
                          MEM_ROOT *mem_root)
60
56
  {
65
61
    return ha_heap_exts;
66
62
  }
67
63
 
68
 
  int doCreateTable(Session *session, 
 
64
  int doCreateTable(Session *session,
69
65
                    const char *table_name,
70
 
                    Table& table_arg, 
 
66
                    Table& table_arg,
71
67
                    drizzled::message::Table &create_proto);
72
68
 
73
69
  /* For whatever reason, internal tables can be created by Cursor::open()
95
91
  /* Temp only engine, so do not return values. */
96
92
  void doGetTableNames(CachedDirectory &, string& , set<string>&) { };
97
93
 
 
94
  uint32_t max_supported_keys()          const { return MAX_KEY; }
 
95
  uint32_t max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
98
96
};
99
97
 
100
98
int HeapEngine::doGetTableDefinition(Session&,