test case for mysql bug 37871 added