This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 219815
Collapse All | Expand All

(-)db.dataview/src/org/netbeans/modules/db/dataview/util/DBReadWriteHelper.java (-5 / +6 lines)
Lines 206-212 Link Here
206
            case Types.VARBINARY:
206
            case Types.VARBINARY:
207
            case Types.LONGVARBINARY:
207
            case Types.LONGVARBINARY:
208
            case Types.BLOB: {
208
            case Types.BLOB: {
209
                // Try to get a blob object (delay loading till the data is used!)
209
                // Try to get a blob object
210
                try {
210
                try {
211
                    Blob blob = rs.getBlob(index);
211
                    Blob blob = rs.getBlob(index);
212
                    
212
                    
Lines 231-240 Link Here
231
                    }
231
                    }
232
                    
232
                    
233
                    return result;
233
                    return result;
234
                } catch (SQLException ex) {
235
                    // Ok - can happen - the jdbc driver might not support
234
                    // Ok - can happen - the jdbc driver might not support
236
                    // blob data or can for example not provide a longvarbinary
235
                    // blob data or can for example not provide a longvarbinary
237
                    // as blob - so fall back to our implementation of blob
236
                    // as blob - so fall back to our implementation of blob
237
                } catch (SQLException ex) {
238
                } catch (java.lang.UnsupportedOperationException ex) {
238
                }
239
                }
239
                try {
240
                try {
240
                    InputStream is = rs.getBinaryStream(index);
241
                    InputStream is = rs.getBinaryStream(index);
Lines 262-268 Link Here
262
            case -16:
263
            case -16:
263
            case Types.CLOB:
264
            case Types.CLOB:
264
            case 2011: /*NCLOB */ {
265
            case 2011: /*NCLOB */ {
265
                // Try to get a blob object (delay loading till the data is used!)
266
                // Try to get a clob object
266
                try {
267
                try {
267
                    Clob clob = rs.getClob(index);
268
                    Clob clob = rs.getClob(index);
268
269
Lines 287-297 Link Here
287
                    }
288
                    }
288
                    
289
                    
289
                    return result;
290
                    return result;
290
                    
291
                } catch (SQLException ex) {
292
                    // Ok - can happen - the jdbc driver might not support
291
                    // Ok - can happen - the jdbc driver might not support
293
                    // clob data or can for example not provide a longvarchar
292
                    // clob data or can for example not provide a longvarchar
294
                    // as clob - so fall back to our implementation of clob
293
                    // as clob - so fall back to our implementation of clob
294
                } catch (SQLException ex) {
295
                } catch (java.lang.UnsupportedOperationException ex) {
295
                }
296
                }
296
                String sdata = rs.getString(index);
297
                String sdata = rs.getString(index);
297
                if (rs.wasNull()) {
298
                if (rs.wasNull()) {

Return to bug 219815