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:
@ -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;
|
||||
|
Reference in New Issue
Block a user