File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/thin/protocol/messages Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ class MessageWithData extends Message {
450
450
if ( actualNumBytes !== 0 && colValue !== null ) {
451
451
errors . throwErr ( errors . ERR_INSUFFICIENT_BUFFER_FOR_BINDS ) ;
452
452
}
453
- } else if ( oraTypeNum === constants . TNS_DATA_TYPE_LONG || oraTypeNum === constants . TNS_DATA_TYPE_LONG_RAW || variable . maxSize >= constants . TNS_MIN_LONG_LENGTH ) {
453
+ } else if ( oraTypeNum === constants . TNS_DATA_TYPE_LONG || oraTypeNum === constants . TNS_DATA_TYPE_LONG_RAW || variable . maxSize > buf . caps . maxStringSize ) {
454
454
buf . skipSB4 ( ) ; // null indicator
455
455
buf . skipUB4 ( ) ; // return code
456
456
}
@@ -689,9 +689,9 @@ class MessageWithData extends Message {
689
689
if ( bindInfo . isReturnBind )
690
690
continue ;
691
691
const variable = bindInfo . bindVar ;
692
- if ( variable . maxSize <= buf . caps . maxStringSize )
693
- continue ;
694
- this . writeBindParamsColumn ( buf , variable , variable . values [ pos + offset ] ) ;
692
+ if ( variable . maxSize > buf . caps . maxStringSize ) {
693
+ this . writeBindParamsColumn ( buf , variable , variable . values [ pos + offset ] ) ;
694
+ }
695
695
}
696
696
}
697
697
}
You can’t perform that action at this time.
0 commit comments