[#3069] jOOQ calls Clob.free(), which is available only in JDBC 4.0 / Java 1.6
This commit is contained in:
parent
3601a78c23
commit
4e1111f1ca
@ -2414,7 +2414,7 @@ final class Utils {
|
||||
return blob.getBytes(1, (int) blob.length());
|
||||
}
|
||||
finally {
|
||||
blob.free();
|
||||
JDBCUtils.safeFree(blob);
|
||||
}
|
||||
}
|
||||
else if (object instanceof Clob) {
|
||||
@ -2424,7 +2424,7 @@ final class Utils {
|
||||
return clob.getSubString(1, (int) clob.length());
|
||||
}
|
||||
finally {
|
||||
clob.free();
|
||||
JDBCUtils.safeFree(clob);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -249,6 +249,9 @@ public class JDBCUtils {
|
||||
blob.free();
|
||||
}
|
||||
catch (Exception ignore) {}
|
||||
|
||||
// [#3069] The free() method was added only in JDBC 4.0 / Java 1.6
|
||||
catch (AbstractMethodError ignore) {}
|
||||
}
|
||||
}
|
||||
|
||||
@ -264,6 +267,9 @@ public class JDBCUtils {
|
||||
clob.free();
|
||||
}
|
||||
catch (Exception ignore) {}
|
||||
|
||||
// [#3069] The free() method was added only in JDBC 4.0 / Java 1.6
|
||||
catch (AbstractMethodError ignore) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user