~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/reverse_function/reverse_function.cc

  • Committer: Olaf van der Spek
  • Date: 2011-05-05 11:49:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2306.
  • Revision ID: olafvdspek@gmail.com-20110505114951-tt45awrgnmkepvuf
Return void

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  /* An empty string is a special case as the string pointer may be null */
53
53
  if (!res->length())
54
54
    return &my_empty_string;
55
 
  if (tmp_value.alloced_length() < res->length() &&
56
 
      tmp_value.realloc(res->length()))
57
 
  {
58
 
    null_value= 1;
59
 
    return 0;
60
 
  }
 
55
  if (tmp_value.alloced_length() < res->length())
 
56
      tmp_value.realloc(res->length());
61
57
  tmp_value.length(res->length());
62
58
  tmp_value.set_charset(res->charset());
63
59
  ptr= (char *) res->ptr();