HHH-5572 sybase does not support setBlob

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20715 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-09-26 19:04:30 +00:00
parent dd1070c474
commit 09e4531dad
1 changed files with 4 additions and 8 deletions

View File

@ -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);