mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for BUG#9298: Make int->string conversion sign-aware in Protocol_simple::store_long
This commit is contained in:
@ -810,7 +810,7 @@ bool Protocol_simple::store_long(longlong from)
|
||||
#endif
|
||||
char buff[20];
|
||||
return net_store_data((char*) buff,
|
||||
(uint) (int10_to_str((int) from,buff, -10)-buff));
|
||||
(uint) (int10_to_str((int)from,buff, (from <0)?-10:10)-buff));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user