HHH-5978 TS: Postgresql 8.x - CustomSQLTest fails because UPPER()'s result is not converted to number.

This commit is contained in:
Strong Liu 2011-04-06 15:51:40 +08:00
parent 9fe7913003
commit 8ca87139de
1 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import java.util.List;
import junit.framework.Test;
import org.hibernate.HibernateException;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.id.PostInsertIdentifierGenerator;
import org.hibernate.testing.junit.functional.FunctionalTestClassTestSuite;
import org.hibernate.classic.Session;
@ -39,7 +40,10 @@ public class CustomSQLTest extends LegacyTestCase {
reportSkip( "hand sql expecting non-identity id gen", "Custom SQL" );
return;
}
if ( getDialect() instanceof PostgreSQLDialect ){
reportSkip( "PostgreSQL requires explicit cast", "Custom SQL" );
return;
}
Role p = new Role();
p.setName("Patient");
@ -101,7 +105,10 @@ public class CustomSQLTest extends LegacyTestCase {
reportSkip( "hand sql expecting non-identity id gen", "Custom SQL" );
return;
}
if ( getDialect() instanceof PostgreSQLDialect ){
reportSkip( "PostgreSQL requires explicit cast", "Custom SQL" );
return;
}
Role role = new Role();
role.setName("Jim Flanders");