Tokutek/ft-engine#152 test case for MDEV-5399