~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_schema_proto/show_schema_proto.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-14 21:56:22 UTC
  • mto: (2279.1.1 build) (2280.2.2 build)
  • mto: This revision was merged to the branch mainline in revision 2280.
  • Revision ID: olafvdspek@gmail.com-20110414215622-5b590ajxlwqqiyi0
Return void

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
  protobuf::TextFormat::PrintToString(*proto, &proto_as_text);
94
94
 
95
 
  if (str->alloc(proto_as_text.length()))
96
 
  {
97
 
    null_value= true;
98
 
    return NULL;
99
 
  }
100
 
 
 
95
  str->alloc(proto_as_text.length());
101
96
  str->length(proto_as_text.length());
102
97
 
103
98
  strncpy(str->ptr(),proto_as_text.c_str(), proto_as_text.length());