~drizzle-trunk/drizzle/jenkins-Drizzle-Builder-213

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-19 09:25:53 UTC
  • mto: This revision was merged to the branch mainline in revision 2445.
  • Revision ID: olafvdspek@gmail.com-20111019092553-yu931zcx3p0z31sn
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
580
580
    }
581
581
 
582
582
    set_if_smaller(from_length, to_length);
583
 
    res= to_cs->cset->well_formed_len(to_cs, from, from + from_length,
584
 
                                      nchars, &well_formed_error);
 
583
    res= to_cs->cset->well_formed_len(*to_cs, str_ref(from, from_length), nchars, &well_formed_error);
585
584
    memmove(to, from, res);
586
585
    *from_end_pos= from + res;
587
586
    *well_formed_error_pos= well_formed_error ? from + res : NULL;