~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/table_writer.cc

Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <config.h>
 
20
#include "config.h"
21
21
 
22
22
#include <iostream>
23
23
#include <fstream>
125
125
    field->set_name(buffer);
126
126
    field->set_type(message::Table::Field::VARCHAR);
127
127
 
128
 
    field_constraints->set_is_notnull((x % 2));
 
128
    field_constraints->set_is_nullable((x % 2));
129
129
 
130
130
    string_field_options->set_length(rand() % 100);
131
131
 
166
166
    field->set_type(message::Table::Field::DECIMAL);
167
167
 
168
168
    field_constraints= field->mutable_constraints();
169
 
    field_constraints->set_is_notnull(false);
 
169
    field_constraints->set_is_nullable(true);
170
170
 
171
171
    numeric_field_options= field->mutable_numeric_options();
172
172
    numeric_field_options->set_precision(8);