MB-9873 Invalid expression in KEY clause are not handled