264
269
collation.set(cs, arg1->collation.derivation);
265
270
if (arg1->type() == STRING_ITEM)
266
271
{ // Optimize the normal case
268
273
max_length= format_length(&arg1->str_value) *
269
274
collation.collation->mbmaxlen;
275
280
collation.collation->mbmaxlen;
276
281
set_if_smaller(max_length,MAX_BLOB_WIDTH);
281
286
bool Item_func_date_format::eq(const Item *item, bool binary_cmp) const