~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

  • Committer: Brian Aker
  • Date: 2009-11-11 21:40:59 UTC
  • mfrom: (1208.3.3 reference)
  • mto: This revision was merged to the branch mainline in revision 1212.
  • Revision ID: brian@gaz-20091111214059-0xfxkwrrixpx2jd9
Update for cursor name change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    addAlias("HEAP");
47
47
  }
48
48
 
49
 
  virtual Cursor *create(TableShare *table,
 
49
  virtual Cursor *create(TableShare &table,
50
50
                          MEM_ROOT *mem_root)
51
51
  {
52
 
    return new (mem_root) ha_heap(this, table);
 
52
    return new (mem_root) ha_heap(*this, table);
53
53
  }
54
54
 
55
55
  const char **bas_ext() const {
157
157
** HEAP tables
158
158
*****************************************************************************/
159
159
 
160
 
ha_heap::ha_heap(drizzled::plugin::StorageEngine *engine_arg,
161
 
                 TableShare *table_arg)
 
160
ha_heap::ha_heap(drizzled::plugin::StorageEngine &engine_arg,
 
161
                 TableShare &table_arg)
162
162
  :Cursor(engine_arg, table_arg), file(0), records_changed(0), key_stat_version(0),
163
163
  internal_table(0)
164
164
{}
238
238
 
239
239
Cursor *ha_heap::clone(MEM_ROOT *mem_root)
240
240
{
241
 
  Cursor *new_handler= table->s->db_type()->getCursor(table->s, mem_root);
 
241
  Cursor *new_handler= table->s->db_type()->getCursor(*table->s, mem_root);
242
242
 
243
243
  if (new_handler && !new_handler->ha_open(table, file->s->name, table->db_stat,
244
244
                                           HA_OPEN_IGNORE_IF_LOCKED))
686
686
 
687
687
int HeapEngine::doCreateTable(Session *session,
688
688
                              const char *table_name,
689
 
                              Table& table_arg,
 
689
                              Table &table_arg,
690
690
                              HA_CREATE_INFO& create_info,
691
691
                              drizzled::message::Table& create_proto)
692
692
{