1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-15821 Row format replication from LONGBLOB COMPRESSED to LONGBLOB does not work

This commit is contained in:
Alexander Barkov
2018-04-10 15:34:20 +04:00
parent 9bd3af97df
commit 9e9ea4f64a
5 changed files with 375 additions and 10 deletions

View File

@ -1392,10 +1392,13 @@ Field *Type_handler_blob_compressed::make_conversion_table_field(TABLE *table,
const Field *target)
const
{
uint pack_length= metadata & 0x00ff;
if (pack_length < 1 || pack_length > 4)
return NULL; // Broken binary log?
return new(table->in_use->mem_root)
Field_blob_compressed(NULL, (uchar *) "", 1, Field::NONE,
&empty_clex_str,
table->s, 2, target->charset(),
table->s, pack_length, target->charset(),
zlib_compression_method);
}