From 780673c25c269f9794d2896e8875b7cab0c4b7a4 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 14 Nov 2006 02:15:45 +0000 Subject: Properly convert null LOBs. --- .../java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java b/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java index cb7fe51..3efa40d 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java @@ -135,12 +135,12 @@ class OracleSupportStrategy extends JDBCSupportStrategy { @Override JDBCBlob convertBlob(java.sql.Blob blob, JDBCBlobLoader loader) { - return new OracleBlob(mRepo, blob, loader); + return blob == null ? null : new OracleBlob(mRepo, blob, loader); } @Override JDBCClob convertClob(java.sql.Clob clob, JDBCClobLoader loader) { - return new OracleClob(mRepo, clob, loader); + return clob == null ? null : new OracleClob(mRepo, clob, loader); } /** -- cgit v1.2.3