HHH-3640 - Reverting the eviction of SybaseDialect, as we need to fix the SybaseDialect and the test case itself is valid

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15692 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Juraci Krohling 2008-12-12 20:48:49 +00:00
parent 4d23b82803
commit a824ec66b5
1 changed files with 8 additions and 10 deletions

View File

@ -1841,7 +1841,7 @@ public class ASTParserLoadingTest extends FunctionalTestCase {
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,16 +1863,14 @@ public class ASTParserLoadingTest extends FunctionalTestCase {
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();*/