~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
class HeapEngine : public StorageEngine
41
41
{
42
42
public:
43
 
  HeapEngine(string name_arg) : StorageEngine(name_arg, HTON_CAN_RECREATE|HTON_TEMPORARY_ONLY)
 
43
  HeapEngine(string name_arg) : StorageEngine(name_arg, HTON_CAN_RECREATE)
44
44
  {
45
45
    addAlias("HEAP");
46
46
  }
55
55
    return ha_heap_exts;
56
56
  }
57
57
 
58
 
  int createTableImplementation(Session *session, const char *table_name,
59
 
                                Table *table_arg, HA_CREATE_INFO *create_info,
60
 
                                drizzled::message::Table*);
 
58
  int createTableImpl(Session *session, const char *table_name,
 
59
                      Table *table_arg, HA_CREATE_INFO *create_info);
61
60
 
62
61
  /* For whatever reason, internal tables can be created by handler::open()
63
62
     for HEAP.
69
68
                        bool internal_table,
70
69
                        HP_SHARE **internal_share);
71
70
 
72
 
  int renameTableImplementation(Session*, const char * from, const char * to);
 
71
  int renameTableImpl(Session*, const char * from, const char * to);
73
72
 
74
 
  int deleteTableImplementation(Session *, const string table_path);
 
73
  int deleteTableImpl(Session *, const string table_path);
75
74
};
76
75
 
77
76
/*
78
77
  We have to ignore ENOENT entries as the HEAP table is created on open and
79
78
  not when doing a CREATE on the table.
80
79
*/
81
 
int HeapEngine::deleteTableImplementation(Session*, const string table_path)
 
80
int HeapEngine::deleteTableImpl(Session*, const string table_path)
82
81
{
83
82
  return heap_delete_table(table_path.c_str());
84
83
}
611
610
}
612
611
 
613
612
 
614
 
int HeapEngine::renameTableImplementation(Session*,
615
 
                                          const char *from, const char *to)
 
613
int HeapEngine::renameTableImpl(Session*, const char *from, const char *to)
616
614
{
617
615
  return heap_rename(from,to);
618
616
}
640
638
  return key->rec_per_key[key->key_parts-1];
641
639
}
642
640
 
643
 
int HeapEngine::createTableImplementation(Session *session,
644
 
                                          const char *table_name,
645
 
                                          Table *table_arg,
646
 
                                          HA_CREATE_INFO *create_info,
647
 
                                          drizzled::message::Table*)
 
641
int HeapEngine::createTableImpl(Session *session, const char *table_name,
 
642
                                Table *table_arg,
 
643
                                HA_CREATE_INFO *create_info)
648
644
{
649
645
  HP_SHARE *internal_share;
650
646
  return heap_create_table(session, table_name, table_arg, create_info,