~stewart/drizzle/skeleton-embedded-innodb-engine

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Stewart Smith
  • Date: 2010-03-23 05:34:36 UTC
  • mfrom: (1283.2.94 staging)
  • Revision ID: stewart@flamingspork.com-20100323053436-gw19us4h0xvlqmjc
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
 
349
349
  for (table= tables; table; table= table->next_local)
350
350
  {
 
351
    TableIdentifier identifier(table->db, table->table_name);
351
352
    TableShare *share;
352
353
    table->db_type= NULL;
353
 
    if ((share= TableShare::getShare(table->db, table->table_name)))
 
354
    if ((share= TableShare::getShare(identifier)))
 
355
    {
354
356
      table->db_type= share->db_type();
 
357
    }
355
358
  }
356
359
 
357
360
  if (lock_table_names_exclusively(session, tables))