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:
parent
dd1070c474
commit
09e4531dad
|
@ -537,7 +537,10 @@ public class SQLFunctionsTest extends LegacyTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testBlobClob() throws Exception {
|
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();
|
Session s = openSession();
|
||||||
Blobber b = new Blobber();
|
Blobber b = new Blobber();
|
||||||
b.setBlob( s.getLobHelper().createBlob( "foo/bar/baz".getBytes() ) );
|
b.setBlob( s.getLobHelper().createBlob( "foo/bar/baz".getBytes() ) );
|
||||||
|
@ -547,13 +550,6 @@ public class SQLFunctionsTest extends LegacyTestCase {
|
||||||
//assertTrue( b.getClob() instanceof ClobImpl );
|
//assertTrue( b.getClob() instanceof ClobImpl );
|
||||||
s.flush();
|
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);
|
s.refresh(b);
|
||||||
//b.getBlob().setBytes( 2, "abc".getBytes() );
|
//b.getBlob().setBytes( 2, "abc".getBytes() );
|
||||||
b.getClob().getSubString(2, 3);
|
b.getClob().getSubString(2, 3);
|
||||||
|
|
Loading…
Reference in New Issue