[sql] Test recovery of corrupt golden file.