@Test public void testSecondPassFunctionResolving1() {
try {
helpResolve("SELECT pm1.g1.e1 FROM pm1.g1 where 1/(e1 - 2) <> 4 "); //$NON-NLS-1$
fail("expected exception");
} catch (RuntimeException e) {
QueryResolverException qre = (QueryResolverException)e.getCause();
assertEquals("ERR.015.008.0040", qre.getCode());
}
}