31 if (!(res=args[0]->
val_str(str)))
40 res= copy_if_not_alloced(str,res,res->length());
41 len= converter(collation.collation, (
char*) res->ptr(), res->length(),
42 (
char*) res->ptr(), res->length());
43 assert(len <= res->length());
48 uint32_t len= res->length() * multiply;
50 tmp_value.set_charset(collation.collation);
51 len= converter(collation.collation, (
char*) res->ptr(), res->length(),
52 (
char*) tmp_value.ptr(), len);
53 tmp_value.length(len);