[hibernate-commits] Hibernate SVN: r15762 - core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/legacy.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Jan 9 06:32:38 EST 2009


Author: gbadner
Date: 2009-01-09 06:32:38 -0500 (Fri, 09 Jan 2009)
New Revision: 15762

Modified:
   core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/legacy/SQLFunctionsTest.java
Log:
JBPAPP-1555 HHH-3691 : Sybase does not support Blobs and Clobs; skip unit tests that use Blobs/Clobs (missed one)


Modified: core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/legacy/SQLFunctionsTest.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/legacy/SQLFunctionsTest.java	2009-01-09 11:00:17 UTC (rev 15761)
+++ core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/legacy/SQLFunctionsTest.java	2009-01-09 11:32:38 UTC (rev 15762)
@@ -27,6 +27,7 @@
 import org.hibernate.dialect.OracleDialect;
 import org.hibernate.dialect.SybaseDialect;
 import org.hibernate.dialect.TimesTenDialect;
+import org.hibernate.dialect.SQLServerDialect;
 import org.hibernate.dialect.function.SQLFunction;
 import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
 
@@ -498,6 +499,14 @@
 		//s.refresh(b);
 		//assertTrue( b.getClob() instanceof ClobImpl );
 		s.flush();
+
+		// Sybase ASE does not support ResultSet.getBlob(String)
+		if ( getDialect() instanceof SybaseDialect && ! ( getDialect() instanceof SQLServerDialect ) ) {
+			s.connection().rollback();
+			s.close();
+			return;
+		}
+
 		s.refresh(b);
 		//b.getBlob().setBytes( 2, "abc".getBytes() );
 		b.getClob().getSubString(2, 3);




More information about the hibernate-commits mailing list