~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/reverse_function/reverse_function.cc

  • Committer: Mark Atwood
  • Date: 2011-05-09 02:54:53 UTC
  • mfrom: (2281.6.4 prune3)
  • Revision ID: me@mark.atwood.name-20110509025453-xpdwk8ary7p63m8x
mergeĀ lp:~olafvdspek/drizzle/prune3

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();