oracledb 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -19
- package/SECURITY.md +1 -1
- package/build/Release/{oracledb-6.0.1-darwin-x64.node → oracledb-6.0.3-darwin-x64.node} +0 -0
- package/build/Release/oracledb-6.0.3-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-6.0.3-js-buildinfo.txt +1 -0
- package/build/Release/{oracledb-6.0.1-linux-arm64.node → oracledb-6.0.3-linux-arm64.node} +0 -0
- package/build/Release/oracledb-6.0.3-linux-arm64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-6.0.3-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/{oracledb-6.0.1-win32-x64.node → oracledb-6.0.3-win32-x64.node} +0 -0
- package/build/Release/oracledb-6.0.3-win32-x64.node-buildinfo.txt +1 -0
- package/lib/connection.js +1 -0
- package/lib/errors.js +5 -4
- package/lib/pool.js +4 -1
- package/lib/settings.js +1 -1
- package/lib/thin/dbObject.js +17 -5
- package/lib/thin/lob.js +2 -2
- package/lib/thin/pool.js +10 -12
- package/lib/thin/protocol/buffer.js +9 -9
- package/lib/thin/protocol/constants.js +5 -4
- package/lib/thin/protocol/encryptDecrypt.js +24 -12
- package/lib/thin/protocol/messages/auth.js +7 -9
- package/lib/thin/protocol/messages/base.js +10 -10
- package/lib/thin/protocol/messages/execute.js +5 -5
- package/lib/thin/protocol/messages/lobOp.js +3 -3
- package/lib/thin/protocol/messages/withData.js +20 -18
- package/lib/thin/protocol/packet.js +31 -27
- package/lib/thin/protocol/protocol.js +12 -7
- package/lib/thin/sqlnet/connStrategy.js +4 -2
- package/lib/thin/sqlnet/ezConnectResolver.js +9 -5
- package/lib/thin/sqlnet/navNodes.js +3 -3
- package/lib/thin/sqlnet/networkSession.js +10 -10
- package/lib/thin/sqlnet/ntTcp.js +38 -25
- package/lib/thin/sqlnet/packet.js +8 -8
- package/lib/thin/sqlnet/paramParser.js +5 -8
- package/lib/thin/statement.js +1 -0
- package/lib/thin/util.js +21 -0
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/build/Release/oracledb-6.0.1-darwin-x64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.0.1-js-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.0.1-linux-arm64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.0.1-linux-x64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.0.1-win32-x64.node-buildinfo.txt +0 -1
- /package/build/Release/{oracledb-6.0.1-linux-x64.node → oracledb-6.0.3-linux-x64.node} +0 -0
|
@@ -163,22 +163,19 @@ class NLParamParser {
|
|
|
163
163
|
let res = ibuf.split(/\r?\n/).filter(element => element);
|
|
164
164
|
for (let i = 0; i < res.length; i++) {
|
|
165
165
|
if (res[i].charAt(0) != '(') {
|
|
166
|
-
res[i] = '(' + res[i];
|
|
167
|
-
}
|
|
168
|
-
if (res[i].charAt(res[i].length - 1 != ')')) {
|
|
169
|
-
res[i] = res[i] + ')';
|
|
166
|
+
res[i] = '(' + res[i] + ')';
|
|
170
167
|
}
|
|
171
168
|
let nvp = createNVPair(res[i]);
|
|
172
169
|
let name = nvp.name;
|
|
173
170
|
let uname = name.toUpperCase();
|
|
174
171
|
nvp.name = uname;
|
|
175
|
-
|
|
172
|
+
const unames = uname.split(","); //multiple aliases (alias1, alias2, alias3)
|
|
173
|
+
for (let i = 0; i < unames.length; i++) {
|
|
174
|
+
this.ht.set(unames[i], nvp);
|
|
175
|
+
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
add_NLPListElement(name, value) {
|
|
180
|
-
this.ht.set(name, value);
|
|
181
|
-
}
|
|
182
179
|
|
|
183
180
|
toString() {
|
|
184
181
|
let out = "";
|
package/lib/thin/statement.js
CHANGED
package/lib/thin/util.js
CHANGED
|
@@ -28,6 +28,26 @@
|
|
|
28
28
|
|
|
29
29
|
const constants = require('../constants');
|
|
30
30
|
const errors = require('../errors.js');
|
|
31
|
+
const os = require('os');
|
|
32
|
+
|
|
33
|
+
//---------------------------------------------------------------------------
|
|
34
|
+
// populateClientInfo()
|
|
35
|
+
//
|
|
36
|
+
// Populates client process information
|
|
37
|
+
//---------------------------------------------------------------------------
|
|
38
|
+
function populateClientInfo() {
|
|
39
|
+
this.program = process.argv0;
|
|
40
|
+
this.terminal = "unknown";
|
|
41
|
+
this.pid = process.pid.toString();
|
|
42
|
+
try {
|
|
43
|
+
this.userName = os.userInfo().username;
|
|
44
|
+
} catch {
|
|
45
|
+
this.userName = "unknown";
|
|
46
|
+
}
|
|
47
|
+
this.hostName = os.hostname();
|
|
48
|
+
}
|
|
49
|
+
// Initialize client data on startup.
|
|
50
|
+
const CLIENT_INFO = new populateClientInfo();
|
|
31
51
|
|
|
32
52
|
//---------------------------------------------------------------------------
|
|
33
53
|
// getMetadataMany(sql)
|
|
@@ -280,6 +300,7 @@ function checkCredentials(params) {
|
|
|
280
300
|
module.exports = {
|
|
281
301
|
getMetadataMany,
|
|
282
302
|
cleanSql,
|
|
303
|
+
CLIENT_INFO,
|
|
283
304
|
getExecuteOutBinds,
|
|
284
305
|
getExecuteManyOutBinds,
|
|
285
306
|
getOutBinds,
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.0.1-darwin-x64.node v16.20.0 628884c63240a6680e2dd5a9ff5006cbf373348f ccbaddf0256153ecfa6702c6ae1a4e5003e3775e Fri, 02 Jun 2023 22:13:14 GMT
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
628884c63240a6680e2dd5a9ff5006cbf373348f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.0.1-linux-arm64.node v16.19.1 628884c63240a6680e2dd5a9ff5006cbf373348f ccbaddf0256153ecfa6702c6ae1a4e5003e3775e Fri, 02 Jun 2023 16:31:07 GMT
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.0.1-linux-x64.node v16.20.0 628884c63240a6680e2dd5a9ff5006cbf373348f ccbaddf0256153ecfa6702c6ae1a4e5003e3775e Sat, 03 Jun 2023 06:55:38 GMT
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.0.1-win32-x64.node v16.19.0 628884c63240a6680e2dd5a9ff5006cbf373348f ccbaddf0256153ecfa6702c6ae1a4e5003e3775e Fri, 02 Jun 2023 16:39:59 GMT
|
|
File without changes
|