Fix test for cross database use

This commit is contained in:
rbygrave committed 2015-05-29 20:36:51 +12:00
1 parent 99203a35a2
commit 7d43f5a3d7
1 file changed
+6 -1
@@ -160,7 +160,12 @@ public class TestQueryFindIterate extends BaseTestCase {
// this throws an exception immediately
QueryIterator<Customer> it = query.findIterate();
it.hashCode();
it.close();
if (!server.getName().equals("h2")) {
// MySql allows the query with type conversion?
throw new PersistenceException("H2 does expected thing but MySql does not");
}
assertTrue("Never get here as exception thrown", false);
}