[hibernate-commits] Hibernate SVN: r20715 - core/trunk/testsuite/src/test/java/org/hibernate/test/legacy.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Sun Sep 26 15:04:31 EDT 2010


Author: stliu
Date: 2010-09-26 15:04:30 -0400 (Sun, 26 Sep 2010)
New Revision: 20715

Modified:
   core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java
Log:
HHH-5572 sybase does not support setBlob

Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java	2010-09-26 18:17:36 UTC (rev 20714)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java	2010-09-26 19:04:30 UTC (rev 20715)
@@ -537,7 +537,10 @@
 	}
 
 	public void testBlobClob() throws Exception {
-
+		// Sybase does not support ResultSet.getBlob(String)
+		if ( getDialect() instanceof SybaseDialect || getDialect() instanceof Sybase11Dialect || getDialect() instanceof SybaseASE15Dialect || getDialect() instanceof SybaseAnywhereDialect ) {
+			return;
+		}
 		Session s = openSession();
 		Blobber b = new Blobber();
 		b.setBlob( s.getLobHelper().createBlob( "foo/bar/baz".getBytes() ) );
@@ -547,13 +550,6 @@
 		//assertTrue( b.getClob() instanceof ClobImpl );
 		s.flush();
 
-		// Sybase does not support ResultSet.getBlob(String)
-		if ( getDialect() instanceof SybaseDialect || getDialect() instanceof Sybase11Dialect || getDialect() instanceof SybaseASE15Dialect || getDialect() instanceof SybaseAnywhereDialect ) {
-			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