From 09e4531dad9915080b3380f14823a8260fec1fee Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Sun, 26 Sep 2010 19:04:30 +0000 Subject: [PATCH] HHH-5572 sybase does not support setBlob git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20715 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../org/hibernate/test/legacy/SQLFunctionsTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java b/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java index b37885ce9a..de43dd9635 100644 --- a/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java +++ b/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java @@ -537,7 +537,10 @@ public class SQLFunctionsTest extends LegacyTestCase { } 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 @@ public class SQLFunctionsTest extends LegacyTestCase { //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);