~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/pad.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:
205
205
    goto err;
206
206
  }
207
207
 
208
 
  if (args[2]->null_value || !pad_char_length ||
209
 
      str->alloc((uint32_t) byte_count))
210
 
    goto err;
211
 
 
 
208
  if (args[2]->null_value || !pad_char_length)
 
209
  str->alloc((uint32_t) byte_count);
212
210
  str->length(0);
213
211
  str->set_charset(collation.collation);
214
212
  count-= res_char_length;