@@ -241,7 +241,7 @@ class ThinDbObjectImpl extends DbObjectImpl {
241
241
break ;
242
242
case types . DB_TYPE_NCHAR :
243
243
case types . DB_TYPE_NVARCHAR :
244
- buf . writeBytesWithLength ( Buffer . From ( value , 'utf16-le ' ) . swap16 ( ) ) ;
244
+ buf . writeBytesWithLength ( Buffer . from ( value , 'utf16le ' ) . swap16 ( ) ) ;
245
245
break ;
246
246
case types . DB_TYPE_NUMBER :
247
247
buf . writeOracleNumber ( value . toString ( ) ) ;
@@ -266,11 +266,6 @@ class ThinDbObjectImpl extends DbObjectImpl {
266
266
case types . DB_TYPE_TIMESTAMP_TZ :
267
267
buf . writeOracleDate ( value , type ) ;
268
268
break ;
269
- case types . DB_TYPE_BLOB :
270
- case types . DB_TYPE_CLOB :
271
- case types . DB_TYPE_NCLOB :
272
- buf . writeLob ( value ) ;
273
- break ;
274
269
case types . DB_TYPE_OBJECT :
275
270
if ( this . _objType . isCollection || value . _objType . isCollection ) {
276
271
buf . writeBytesWithLength ( value . _getPackedData ( ) ) ;
@@ -358,7 +353,7 @@ class ThinDbObjectImpl extends DbObjectImpl {
358
353
case types . DB_TYPE_NCHAR :
359
354
return buf . readStr ( constants . TNS_CS_NCHAR ) ;
360
355
case types . DB_TYPE_RAW :
361
- return buf . readBytes ( ) ;
356
+ return buf . readBytesWithLength ( ) ;
362
357
case types . DB_TYPE_BINARY_DOUBLE :
363
358
return buf . readBinaryDouble ( ) ;
364
359
case types . DB_TYPE_BINARY_FLOAT :
@@ -370,9 +365,6 @@ class ThinDbObjectImpl extends DbObjectImpl {
370
365
case types . DB_TYPE_TIMESTAMP_TZ :
371
366
return buf . readOracleDate ( false ) ;
372
367
case types . DB_TYPE_BLOB :
373
- case types . DB_TYPE_CLOB :
374
- case types . DB_TYPE_NCLOB :
375
- return buf . readLob ( this . type . typeClass . _connection , type ) ;
376
368
case types . DB_TYPE_BOOLEAN :
377
369
return buf . readBool ( ) ;
378
370
case types . DB_TYPE_OBJECT :
0 commit comments