@@ -209,14 +209,16 @@ protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) thro
209
209
OracleJsonDatum ojd = rs .getObject ( paramIndex , OracleJsonDatum .class );
210
210
return doExtraction ( ojd , options );
211
211
}
212
- } catch (SQLException exc ) {
212
+ }
213
+ catch (SQLException exc ) {
213
214
if ( exc .getErrorCode () == DatabaseError .JDBC_ERROR_BASE + DatabaseError .EOJ_INVALID_COLUMN_TYPE ) {
214
215
// This may happen if we are fetching data from an existing schema
215
216
// that uses BLOB for JSON column In that case we assume bytes are
216
217
// UTF-8 bytes (i.e not OSON) and we fall back to previous String-based implementation
217
218
LOG .invalidJSONColumnType ( OracleType .CLOB .getName (), OracleType .JSON .getName () );
218
219
return fromString ( rs .getBytes ( paramIndex ), options );
219
- } else {
220
+ }
221
+ else {
220
222
throw exc ;
221
223
}
222
224
}
@@ -232,14 +234,16 @@ protected X doExtract(CallableStatement statement, int index, WrapperOptions opt
232
234
OracleJsonDatum ojd = statement .getObject ( index , OracleJsonDatum .class );
233
235
return doExtraction ( ojd , options );
234
236
}
235
- } catch (SQLException exc ) {
237
+ }
238
+ catch (SQLException exc ) {
236
239
if ( exc .getErrorCode () == DatabaseError .JDBC_ERROR_BASE + DatabaseError .EOJ_INVALID_COLUMN_TYPE ) {
237
240
// This may happen if we are fetching data from an existing schema
238
241
// that uses BLOB for JSON column In that case we assume bytes are
239
242
// UTF-8 bytes (i.e not OSON) and we fall back to previous String-based implementation
240
243
LOG .invalidJSONColumnType ( OracleType .CLOB .getName (), OracleType .JSON .getName () );
241
244
return fromString ( statement .getBytes ( index ), options );
242
- } else {
245
+ }
246
+ else {
243
247
throw exc ;
244
248
}
245
249
}
@@ -256,14 +260,16 @@ protected X doExtract(CallableStatement statement, String name, WrapperOptions o
256
260
OracleJsonDatum ojd = statement .getObject ( name , OracleJsonDatum .class );
257
261
return doExtraction ( ojd , options );
258
262
}
259
- } catch (SQLException exc ) {
263
+ }
264
+ catch (SQLException exc ) {
260
265
if ( exc .getErrorCode () == DatabaseError .JDBC_ERROR_BASE + DatabaseError .EOJ_INVALID_COLUMN_TYPE ) {
261
266
// This may happen if we are fetching data from an existing schema
262
267
// that uses BLOB for JSON column In that case we assume bytes are
263
268
// UTF-8 bytes (i.e not OSON) and we fall back to previous String-based implementation
264
269
LOG .invalidJSONColumnType ( OracleType .CLOB .getName (), OracleType .JSON .getName () );
265
270
return fromString ( statement .getBytes ( name ), options );
266
- } else {
271
+ }
272
+ else {
267
273
throw exc ;
268
274
}
269
275
}
0 commit comments