Author: max.andersen(a)jboss.com
Date: 2006-11-28 05:39:27 -0500 (Tue, 28 Nov 2006)
New Revision: 10871
Modified:
trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.java
Log:
adjusted test case for Ingres.
Modified: trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.java
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.java 2006-11-26
14:16:21 UTC (rev 10870)
+++ trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.java 2006-11-28
10:39:27 UTC (rev 10871)
@@ -1624,13 +1624,13 @@
public void testSubselectBetween() {
if(supportsSubselectOnLeftSideIn()) {
assertResultSize("from Animal x where (select max(a.bodyWeight) from Animal a) in
(1,2,3)", 0);
+ assertResultSize("from Animal x where (select max(a.bodyWeight) from Animal a)
between 0 and 100", 0);
+ assertResultSize("from Animal x where (select max(a.description) from Animal a)
like 'big%'", 0);
+ assertResultSize("from Animal x where (select max(a.bodyWeight) from Animal a) is
not null", 0);
}
- assertResultSize("from Animal x where (select max(a.bodyWeight) from Animal a)
between 0 and 100", 0);
- assertResultSize("from Animal x where (select max(a.description) from Animal a)
like 'big%'", 0);
- assertResultSize("from Animal x where (select max(a.bodyWeight) from Animal a) is
not null", 0);
assertResultSize("from Animal x where exists (select max(a.bodyWeight) from Animal
a)", 0);
}
-
+
private void assertResultSize(String hql, int size) {
Session session = openSession();
Transaction txn = session.beginTransaction();