[hibernate-commits] Hibernate SVN: r15692 - core/trunk/testsuite/src/test/java/org/hibernate/test/hql.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Fri Dec 12 15:48:49 EST 2008
Author: jcosta at redhat.com
Date: 2008-12-12 15:48:49 -0500 (Fri, 12 Dec 2008)
New Revision: 15692
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
Log:
HHH-3640 - Reverting the eviction of SybaseDialect, as we need to fix the SybaseDialect and the test case itself is valid
Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java 2008-12-12 15:44:56 UTC (rev 15691)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java 2008-12-12 20:48:49 UTC (rev 15692)
@@ -1841,7 +1841,7 @@
hql = "select locate('cat', a.description, 2) from Animal a";
session.createQuery(hql).list();
- if ( !( getDialect() instanceof DB2Dialect || getDialect() instanceof SybaseDialect) ) {
+ if ( !( getDialect() instanceof DB2Dialect ) ) {
hql = "from Animal a where trim(trailing '_' from a.description) = 'cat'";
session.createQuery(hql).list();
@@ -1863,17 +1863,15 @@
hql = "from Animal a where abs(a.bodyWeight) = sqrt(a.bodyWeight)";
session.createQuery(hql).list();
- if ( !( getDialect() instanceof SybaseDialect) ) {
- hql = "from Animal a where mod(16, 4) = 4";
- session.createQuery(hql).list();
+ hql = "from Animal a where mod(16, 4) = 4";
+ session.createQuery(hql).list();
- hql = "select bit_length(a.bodyWeight) from Animal a";
- session.createQuery(hql).list();
+ hql = "from Animal a where bit_length(a.bodyWeight) = 24";
+ session.createQuery(hql).list();
- hql = "from Animal a where bit_length(a.bodyWeight) = 24";
- session.createQuery(hql).list();
- }
-
+ hql = "select bit_length(a.bodyWeight) from Animal a";
+ session.createQuery(hql).list();
+
/*hql = "select object(a) from Animal a where CURRENT_DATE = :p1 or CURRENT_TIME = :p2 or CURRENT_TIMESTAMP = :p3";
session.createQuery(hql).list();*/
More information about the hibernate-commits
mailing list