~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_proto_write.cc

  • Committer: Stewart Smith
  • Date: 2010-11-10 08:34:07 UTC
  • mto: (1819.7.44 update-innobase)
  • mto: This revision was merged to the branch mainline in revision 1926.
  • Revision ID: stewart@flamingspork.com-20101110083407-gjxc14qobns5kpp6
throw an error on trying to create a table with a column of type NULL. Yes, the error message here isn't ideal...

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
    message::Table::Field::FieldType parser_type= attribute->type();
98
98
 
 
99
    if (field_arg->sql_type == DRIZZLE_TYPE_NULL)
 
100
    {
 
101
      my_error(ER_CANT_CREATE_TABLE, MYF(ME_BELL+ME_WAITTANG), table_proto.name().c_str(), -1);
 
102
      return -1;
 
103
    }
 
104
 
99
105
    attribute->set_type(message::internalFieldTypeToFieldProtoType(field_arg->sql_type));
100
106
 
101
107
    switch (attribute->type()) {