~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Brian Aker
  • Date: 2008-09-26 23:52:54 UTC
  • Revision ID: brian@tangent.org-20080926235254-537jgpyq4g4ce0n2
First pass to dump legacy types (wow! this has been a long time coming)

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    return NULL;
197
197
  }
198
198
 
199
 
  switch (database_type) {
200
 
  case DB_TYPE_HASH:
201
 
    return ha_resolve_by_legacy_type(thd, DB_TYPE_HASH);
202
 
  default:
203
 
    break;
204
 
  }
205
 
 
206
199
  return ha_default_handlerton(thd);
207
200
} /* ha_checktype */
208
201
 
416
409
    "memory" hton which will be configurable longterm. We should be able to 
417
410
    remove partition and myisammrg.
418
411
  */
419
 
  switch (hton->db_type) {
420
 
  case DB_TYPE_HEAP:
 
412
  if (strcmp(plugin->plugin->name, "MEMORY") == 0)
421
413
    heap_hton= hton;
422
 
    break;
423
 
  case DB_TYPE_MYISAM:
 
414
 
 
415
  if (strcmp(plugin->plugin->name, "MyISAM") == 0)
424
416
    myisam_hton= hton;
425
 
    break;
426
 
  default:
427
 
    break;
428
 
  };
429
417
 
430
418
  return(0);
431
419
err: