~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_proto_write.cc

  • Committer: Brian Aker
  • Date: 2009-10-30 15:58:06 UTC
  • mfrom: (1183.1.30 merge)
  • Revision ID: brian@gaz-20091030155806-bq7mu2f5ljtodn0h
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
 
555
555
  int err= 0;
556
556
 
557
 
  plugin::StorageEngine* engine= plugin::StorageEngine::findByName(session,
558
 
                                            table_proto->engine().name());
 
557
  plugin::StorageEngine* engine= plugin::StorageEngine::findByName(*session,
 
558
                                                                   table_proto->engine().name());
559
559
  if (engine->check_flag(HTON_BIT_HAS_DATA_DICTIONARY) == false)
560
560
    err= drizzle_write_proto_file(new_path, table_proto);
561
561
 
569
569
    goto err_handler;
570
570
  }
571
571
 
572
 
  if (plugin::StorageEngine::createTable(session, path, db, table_name,
573
 
                                         create_info, false, table_proto))
 
572
  if (plugin::StorageEngine::createTable(*session, path, db, table_name,
 
573
                                         *create_info, false, *table_proto))
574
574
    goto err_handler;
575
575
  return 0;
576
576