19 Mar
2018
19 Mar
'18
11:56 a.m.
Roberto, This error comes from Field_longstr::compress(), where we perform truncation if *to_length <= length. Regards, Sergey On Sat, Mar 17, 2018 at 09:31:29AM -0300, Roberto Spadim wrote:
at git commit: https://github.com/MariaDB/server/commit/fdc47792354c820aa4a8542d7c00d434424...
instead of: + return n < 256 ? 1 : n < 65536 ? 2 : n < 16777216 ? 3 : 4;
use: + return n < 256*-1* ? 1 : n < 65536*-1* ? 2 : n < 16777216*-1* ? 3 : 4;
since length is reduced by one: https://github.com/MariaDB/server/commit/fdc47792354c820aa4a8542d7c00d434424...