mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
Fixed bug in Item_func_compress::val_str() on MacOS X (bigendian); the length
was not properly stored in the buffer.
This commit is contained in:
parent
7f51b1d3e4
commit
8cf4e72923
1 changed files with 3 additions and 2 deletions
|
@ -2955,8 +2955,9 @@ String *Item_func_compress::val_str(String *str)
|
|||
null_value= 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int4store(buffer.c_ptr(),res->length() & 0x3FFFFFFF);
|
||||
|
||||
char *tmp= buffer.c_ptr(); // int4store is a macro; avoid side effects
|
||||
int4store(tmp, res->length() & 0x3FFFFFFF);
|
||||
|
||||
/* This is for the stupid char fields which trim ' ': */
|
||||
char *last_char= ((char*)body)+new_size-1;
|
||||
|
|
Loading…
Add table
Reference in a new issue