~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/table_writer.cc

  • Committer: Jay Pipes
  • Date: 2009-02-04 15:44:25 UTC
  • mfrom: (829 drizzle)
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090204154425-th8xfk2ujz2y8xwg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  for (x= 0; x < 2; x++)
32
32
  {
33
33
    option= engine->add_option();
34
 
    option->set_name(option_names[x]);
35
 
    option->set_value(option_values[x]);
36
 
    option->set_type(Table::StorageEngine::EngineOption::STRING);
 
34
    option->set_option_name(option_names[x]);
 
35
    option->set_option_value(option_values[x]);
 
36
    option->set_option_type(Table::StorageEngine::EngineOption::STRING);
37
37
  }
38
38
}
39
39
 
51
51
  Table::Field *field;
52
52
  Table::Index::IndexPart *index_part;
53
53
 
54
 
  index= table->add_index();
 
54
  index= table->add_indexes();
55
55
 
56
56
  index->set_name(name);
57
57
  index->set_type(Table::Index::BTREE);
121
121
    field->set_name("colors");
122
122
 
123
123
    set_field_options= field->mutable_set_options();
124
 
    set_field_options->add_value("red");
125
 
    set_field_options->add_value("blue");
126
 
    set_field_options->add_value("green");
127
 
    set_field_options->set_count_elements(set_field_options->value_size());
 
124
    set_field_options->add_field_value("red");
 
125
    set_field_options->add_field_value("blue");
 
126
    set_field_options->add_field_value("green");
 
127
    set_field_options->set_count_elements(set_field_options->field_value_size());
128
128
  }
129
129
  /* Write out a BLOB */
130
130
  {