~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.cc

Reverted changes.

Show diffs side-by-side

added added

removed removed

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