File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
lib/thin/protocol/messages Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ Common Changes
20
20
#) Fixed bug that may cause runtime issues in some JavaScript frameworks.
21
21
See `Issue #1706 <https://github.com/oracle/node-oracledb/issues/1706 >`__.
22
22
23
+ Thin Mode Changes
24
+ +++++++++++++++++
25
+
26
+ #) Fixed bug that fails to throw an error, when fetching data greater
27
+ than the ``maxSize `` property of outbinds in Oracle Database 12.1.
23
28
24
29
node-oracledb `v6.7.0 <https://github.com/oracle/node-oracledb/compare/v6.6.0...v6.7.0 >`__ (18 Nov 2024)
25
30
---------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ class MessageWithData extends Message {
698
698
// conversion requested if maxSize is not multiplied by the
699
699
// bufferSizeFactor
700
700
if ( variable . type . _csfrm === constants . CSFRM_NCHAR ) {
701
- maxSize *= variable . type . _bufferSizeFactor ;
701
+ maxSize = Math . min ( maxSize * variable . type . _bufferSizeFactor , constants . TNS_MAX_LONG_LENGTH ) ;
702
702
}
703
703
if ( [ constants . TNS_DATA_TYPE_ROWID , constants . TNS_DATA_TYPE_UROWID ] . includes ( oraTypeNum ) ) {
704
704
oraTypeNum = constants . TNS_DATA_TYPE_VARCHAR ;
@@ -726,11 +726,9 @@ class MessageWithData extends Message {
726
726
// expects that and complains if any other value is sent!
727
727
buf . writeUInt8 ( 0 ) ;
728
728
buf . writeUInt8 ( 0 ) ;
729
- if ( maxSize > buf . caps . maxStringSize ) {
730
- buf . writeUB4 ( constants . TNS_MAX_LONG_LENGTH ) ;
731
- } else {
732
- buf . writeUB4 ( maxSize ) ;
733
- }
729
+
730
+ // Write the max buffer size
731
+ buf . writeUB4 ( maxSize ) ;
734
732
735
733
if ( variable . isArray ) {
736
734
buf . writeUB4 ( variable . maxArraySize ) ;
You can’t perform that action at this time.
0 commit comments