• Sergey Glukhov's avatar
    Bug#11766300 59387: FAILING ASSERTION: CURSOR->POS_STATE == 1997660512 (BTR_PCUR_IS_POSITIONE · 17817a30
    Sergey Glukhov authored
    Bug#13639204 64111: CRASH ON SELECT SUBQUERY WITH NON UNIQUE INDEX
    The crash happened due to wrong calculation
    of key length during creation of reference for
    sort order index. The problem is that
    keyuse->used_tables can have OUTER_REF_TABLE_BIT enabled
    but used_tables parameter(create_ref_for_key() func) does
    not have it. So key parts which have OUTER_REF_TABLE_BIT
    are ommited and it could lead to incorrect key length
    calculation(zero key length).
    17817a30
subselect_innodb.test 8.9 KB