mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -711,7 +711,7 @@ uchar *net_store_data(uchar *to, const uchar *from, size_t length)
|
||||
|
||||
uchar *net_store_data(uchar *to,int32 from)
|
||||
{
|
||||
char buff[20];
|
||||
char buff[22];
|
||||
uint length=(uint) (int10_to_str(from,buff,10)-buff);
|
||||
to=net_store_length_fast(to,length);
|
||||
memcpy(to,buff,length);
|
||||
@ -1137,7 +1137,7 @@ bool Protocol_text::store_tiny(longlong from)
|
||||
DBUG_ASSERT(field_types == 0 || field_types[field_pos] == MYSQL_TYPE_TINY);
|
||||
field_pos++;
|
||||
#endif
|
||||
char buff[20];
|
||||
char buff[22];
|
||||
return net_store_data((uchar*) buff,
|
||||
(size_t) (int10_to_str((int) from, buff, -10) - buff));
|
||||
}
|
||||
@ -1151,7 +1151,7 @@ bool Protocol_text::store_short(longlong from)
|
||||
field_types[field_pos] == MYSQL_TYPE_SHORT);
|
||||
field_pos++;
|
||||
#endif
|
||||
char buff[20];
|
||||
char buff[22];
|
||||
return net_store_data((uchar*) buff,
|
||||
(size_t) (int10_to_str((int) from, buff, -10) -
|
||||
buff));
|
||||
@ -1166,7 +1166,7 @@ bool Protocol_text::store_long(longlong from)
|
||||
field_types[field_pos] == MYSQL_TYPE_LONG);
|
||||
field_pos++;
|
||||
#endif
|
||||
char buff[20];
|
||||
char buff[22];
|
||||
return net_store_data((uchar*) buff,
|
||||
(size_t) (int10_to_str((long int)from, buff,
|
||||
(from <0)?-10:10)-buff));
|
||||
|
Reference in New Issue
Block a user