~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                           drizzled::message::Table *table_proto);
91
91
 
92
92
  /* Temp only engine, so do not return values. */
93
 
  void doGetTableNames(CachedDirectory &, string& , set<string>&) { };
 
93
  void doGetTableNames(drizzled::CachedDirectory &, string& , set<string>&) { };
94
94
 
95
95
  uint32_t max_supported_keys()          const { return MAX_KEY; }
96
96
  uint32_t max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
198
198
 
199
199
int ha_heap::open(const char *name, int mode, uint32_t test_if_locked)
200
200
{
201
 
  if ((test_if_locked & HA_OPEN_INTERNAL_TABLE) || (!(file= heap_open(name, mode)) && my_errno == ENOENT))
 
201
  if ((test_if_locked & HA_OPEN_INTERNAL_TABLE) || (!(file= heap_open(name, mode)) && errno == ENOENT))
202
202
  {
203
203
    HA_CREATE_INFO create_info;
204
204
    internal_table= test(test_if_locked & HA_OPEN_INTERNAL_TABLE);
742
742
    return -1;
743
743
 
744
744
  if (!(columndef= (HP_COLUMNDEF*) malloc(column_count * sizeof(HP_COLUMNDEF))))
745
 
    return my_errno;
 
745
    return errno;
746
746
 
747
747
  for (column_idx= 0; column_idx < column_count; column_idx++)
748
748
  {
780
780
                                    parts * sizeof(HA_KEYSEG))))
781
781
  {
782
782
    free((void *) columndef);
783
 
    return my_errno;
 
783
    return errno;
784
784
  }
785
785
 
786
786
  seg= reinterpret_cast<HA_KEYSEG*> (keydef + keys);