mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
5.5 merge
This commit is contained in:
commit
3495801e2e
90 changed files with 2761 additions and 337 deletions
|
|
@ -3274,6 +3274,18 @@ String *Item_func_lpad::val_str(String *str)
|
|||
res->set_charset(&my_charset_bin);
|
||||
pad->set_charset(&my_charset_bin);
|
||||
}
|
||||
#if MARIADB_VERSION_ID < 1000000
|
||||
/*
|
||||
Well-formedness is handled on a higher level in 10.0,
|
||||
no needs to check it here again.
|
||||
*/ else
|
||||
{
|
||||
// This will chop off any trailing illegal characters from pad.
|
||||
String *well_formed_pad= args[2]->check_well_formed_result(pad, false);
|
||||
if (!well_formed_pad)
|
||||
goto err;
|
||||
}
|
||||
#endif
|
||||
|
||||
res_char_length= res->numchars();
|
||||
|
||||
|
|
@ -4195,7 +4207,7 @@ String *Item_func_uncompress::val_str(String *str)
|
|||
goto err;
|
||||
|
||||
if ((err= uncompress((Byte*)buffer.ptr(), &new_size,
|
||||
((const Bytef*)res->ptr())+4,res->length())) == Z_OK)
|
||||
((const Bytef*)res->ptr())+4,res->length()-4)) == Z_OK)
|
||||
{
|
||||
buffer.length((uint32) new_size);
|
||||
return &buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue