~stewart/drizzle/embedded-innodb-autoincrement

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.cc

Merged reenable-embedded_innodb into embedded-innodb-autoincrement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
881
881
  /* Add ENGINE = " clause */
882
882
  if (table.has_engine())
883
883
  {
884
 
    const Table::StorageEngine &engine= table.engine();
885
884
    destination.append("\nENGINE = ", 10);
886
 
    destination.append(engine.name());
 
885
    destination.append(table.engine().name());
887
886
 
888
 
    size_t num_engine_options= engine.option_size();
 
887
    size_t num_engine_options= table.engine().options_size();
889
888
    for (size_t x= 0; x < num_engine_options; ++x)
890
889
    {
891
 
      const Table::StorageEngine::EngineOption &option= engine.option(x);
 
890
      const Engine::Option &option= table.engine().options(x);
892
891
      destination.push_back('\n');
893
 
      destination.append(option.option_name());
 
892
      destination.append(option.name());
894
893
      destination.append(" = ", 3);
895
 
      destination.append(option.option_value());
 
894
      destination.append(option.state());
896
895
      destination.push_back('\n');
897
896
    }
898
897
  }
988
987
    ss.clear();
989
988
  }
990
989
 
991
 
  if (options.has_key_block_size())
992
 
  {
993
 
    ss << options.key_block_size();
994
 
    destination.append("\nKEY_BLOCK_SIZE = ", 18);
995
 
    destination.append(ss.str());
996
 
    ss.clear();
997
 
  }
998
 
 
999
 
  if (options.has_block_size())
1000
 
  {
1001
 
    ss << options.block_size();
1002
 
    destination.append("\nBLOCK_SIZE = ", 14);
1003
 
    destination.append(ss.str());
1004
 
    ss.clear();
1005
 
  }
1006
 
 
1007
 
  if (options.has_pack_keys() &&
1008
 
      options.pack_keys())
1009
 
    destination.append("\nPACK_KEYS = TRUE", 17);
1010
 
  if (options.has_pack_record() &&
1011
 
      options.pack_record())
1012
 
    destination.append("\nPACK_RECORD = TRUE", 19);
1013
990
  if (options.has_checksum() &&
1014
991
      options.checksum())
1015
992
    destination.append("\nCHECKSUM = TRUE", 16);