@@ -190,17 +190,17 @@ class MessageWithData extends Message {
190
190
let name ;
191
191
numBytes = buf . readUB4 ( ) ;
192
192
if ( numBytes > 0 ) {
193
- name = buf . readStr ( constants . TNS_CS_IMPLICIT ) ;
193
+ name = buf . readStr ( constants . CSFRM_IMPLICIT ) ;
194
194
}
195
195
let schema ;
196
196
numBytes = buf . readUB4 ( ) ;
197
197
if ( numBytes > 0 ) {
198
- schema = buf . readStr ( constants . TNS_CS_IMPLICIT ) ;
198
+ schema = buf . readStr ( constants . CSFRM_IMPLICIT ) ;
199
199
}
200
200
numBytes = buf . readUB4 ( ) ;
201
201
let typeName ;
202
202
if ( numBytes > 0 ) {
203
- typeName = buf . readStr ( constants . TNS_CS_IMPLICIT ) ;
203
+ typeName = buf . readStr ( constants . CSFRM_IMPLICIT ) ;
204
204
}
205
205
buf . skipUB2 ( ) ; // column position
206
206
buf . skipUB4 ( ) ; // uds flag
@@ -356,7 +356,7 @@ class MessageWithData extends Message {
356
356
oraTypeNum === constants . TNS_DATA_TYPE_CHAR ||
357
357
oraTypeNum === constants . TNS_DATA_TYPE_LONG
358
358
) {
359
- if ( csfrm === constants . TNS_CS_NCHAR ) {
359
+ if ( csfrm === constants . CSFRM_NCHAR ) {
360
360
buf . caps . checkNCharsetId ( ) ;
361
361
}
362
362
colValue = buf . readStr ( csfrm ) ;
@@ -381,7 +381,7 @@ class MessageWithData extends Message {
381
381
colValue = buf . readOracleDate ( useLocalTime ) ;
382
382
} else if ( oraTypeNum === constants . TNS_DATA_TYPE_ROWID ) {
383
383
if ( ! this . inFetch ) {
384
- colValue = buf . readStr ( constants . TNS_CS_IMPLICIT ) ;
384
+ colValue = buf . readStr ( constants . CSFRM_IMPLICIT ) ;
385
385
} else {
386
386
let numBytes = buf . readUInt8 ( ) ;
387
387
if ( isNullLength ( numBytes ) ) {
@@ -393,7 +393,7 @@ class MessageWithData extends Message {
393
393
}
394
394
} else if ( oraTypeNum === constants . TNS_DATA_TYPE_UROWID ) {
395
395
if ( ! this . inFetch ) {
396
- colValue = buf . readStr ( constants . TNS_CS_IMPLICIT ) ;
396
+ colValue = buf . readStr ( constants . CSFRM_IMPLICIT ) ;
397
397
} else {
398
398
colValue = buf . readURowID ( ) ;
399
399
}
@@ -479,7 +479,7 @@ class MessageWithData extends Message {
479
479
for ( let i = 0 ; i < numParams ; i ++ ) {
480
480
numBytes = buf . readUB2 ( ) ; // key
481
481
if ( numBytes > 0 ) {
482
- keyTextValue = buf . readStr ( constants . TNS_CS_IMPLICIT ) ;
482
+ keyTextValue = buf . readStr ( constants . CSFRM_IMPLICIT ) ;
483
483
}
484
484
numBytes = buf . readUB2 ( ) ; // value
485
485
if ( numBytes > 0 ) {
@@ -608,7 +608,7 @@ class MessageWithData extends Message {
608
608
// NCHAR, NVARCHAR reports ORA-01460: unimplemented or unreasonable
609
609
// conversion requested if maxSize is not multiplied by the
610
610
// bufferSizeFactor
611
- if ( variable . type . _csfrm === constants . TNS_CS_NCHAR ) {
611
+ if ( variable . type . _csfrm === constants . CSFRM_NCHAR ) {
612
612
maxSize *= variable . type . _bufferSizeFactor ;
613
613
}
614
614
if ( [ constants . TNS_DATA_TYPE_ROWID , constants . TNS_DATA_TYPE_UROWID ] . includes ( oraTypeNum ) ) {
@@ -732,7 +732,7 @@ class MessageWithData extends Message {
732
732
oraTypeNum === constants . TNS_DATA_TYPE_LONG ||
733
733
oraTypeNum === constants . TNS_DATA_TYPE_RAW ||
734
734
oraTypeNum === constants . TNS_DATA_TYPE_LONG_RAW ) {
735
- if ( variable . type . _csfrm === constants . TNS_CS_NCHAR ) {
735
+ if ( variable . type . _csfrm === constants . CSFRM_NCHAR ) {
736
736
buf . caps . checkNCharsetId ( ) ;
737
737
value = Buffer . from ( value , constants . TNS_ENCODING_UTF16 ) . swap16 ( ) ;
738
738
} else {
0 commit comments