[1.7.x] Fix test breakage on MySQL