Closed Xamo1297 closed 3 months ago
Thanks @Xamo1297 for informing. This will be fixed in the upcoming 6.4.0 release.
There is a patch something below which is missing in 6.3, It will be officially released as part of 6.4 with other related changes..
diff --git a/lib/thin/connection.js b/lib/thin/connection.js
index c671c1da..c1613f54 100644
--- a/lib/thin/connection.js
+++ b/lib/thin/connection.js
@@ -273,6 +273,8 @@ class ThinConnectionImpl extends ConnectionImpl {
oraTypeNum = (attrType === constants.TNS_OBJ_TDS_TYPE_VARCHAR) ?
constants.TNS_DATA_TYPE_VARCHAR : constants.TNS_DATA_TYPE_CHAR;
csfrm = buf.readUInt8();
+ csfrm = csfrm & 0x7f;
+ buf.skipBytes(2);
info.elementType = types.getTypeByOraTypeNum(oraTypeNum, csfrm);
break;
case constants.TNS_OBJ_TDS_TYPE_RAW:
@Xamo1297 This has been fixed in node-oracledb 6.4. Please confirm.
@Xamo1297 This has been fixed in node-oracledb 6.4. Please confirm.
It works correctly with v6.4, thanks
Oracle Database 19.3 process.platform : win32 process.version: v20.10.0 process.arch x64 require('oracledb').versionString: 6.3.0 require('oracledb').oracleClientVersionString: 19.3.0.0.0 (in thick mode)
Is it an error or a hang or a crash? Error
What error(s) or behavior you are seeing? NJS-110: invalid Oracle type number 1 [csfrm: 129]
Include a runnable Node.js script that shows the problem.
SQL:
Javascript:
Result using thin mode:
Result using thick mode: