1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-11525 Assertion `cp + len <= buff + buff_size' failed in JOIN_CACHE::write_record_data

Workaround for join_cache + index on vcols + keyread bug.
Initialize the record to avoid caching garbage in non-read fields.

A proper fix (do not cache non-read fields at all) is done in 10.2
in commits 5d7607f340f..8d99166c697
This commit is contained in:
Sergei Golubchik
2017-02-16 13:24:00 +01:00
parent eef2101489
commit 8897b50dca
3 changed files with 146 additions and 0 deletions

View File

@ -589,6 +589,11 @@ void JOIN_CACHE::create_remaining_fields()
{
MY_BITMAP *rem_field_set;
TABLE *table= tab->table;
#if MYSQL_VERSION_ID < 100204
empty_record(table);
#else
#error remove
#endif
if (all_read_fields)
rem_field_set= table->read_set;