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.
Files changed (44) hide show
  1. package/README.md +18 -19
  2. package/SECURITY.md +1 -1
  3. package/build/Release/{oracledb-6.0.1-darwin-x64.node → oracledb-6.0.3-darwin-x64.node} +0 -0
  4. package/build/Release/oracledb-6.0.3-darwin-x64.node-buildinfo.txt +1 -0
  5. package/build/Release/oracledb-6.0.3-js-buildinfo.txt +1 -0
  6. package/build/Release/{oracledb-6.0.1-linux-arm64.node → oracledb-6.0.3-linux-arm64.node} +0 -0
  7. package/build/Release/oracledb-6.0.3-linux-arm64.node-buildinfo.txt +1 -0
  8. package/build/Release/oracledb-6.0.3-linux-x64.node-buildinfo.txt +1 -0
  9. package/build/Release/{oracledb-6.0.1-win32-x64.node → oracledb-6.0.3-win32-x64.node} +0 -0
  10. package/build/Release/oracledb-6.0.3-win32-x64.node-buildinfo.txt +1 -0
  11. package/lib/connection.js +1 -0
  12. package/lib/errors.js +5 -4
  13. package/lib/pool.js +4 -1
  14. package/lib/settings.js +1 -1
  15. package/lib/thin/dbObject.js +17 -5
  16. package/lib/thin/lob.js +2 -2
  17. package/lib/thin/pool.js +10 -12
  18. package/lib/thin/protocol/buffer.js +9 -9
  19. package/lib/thin/protocol/constants.js +5 -4
  20. package/lib/thin/protocol/encryptDecrypt.js +24 -12
  21. package/lib/thin/protocol/messages/auth.js +7 -9
  22. package/lib/thin/protocol/messages/base.js +10 -10
  23. package/lib/thin/protocol/messages/execute.js +5 -5
  24. package/lib/thin/protocol/messages/lobOp.js +3 -3
  25. package/lib/thin/protocol/messages/withData.js +20 -18
  26. package/lib/thin/protocol/packet.js +31 -27
  27. package/lib/thin/protocol/protocol.js +12 -7
  28. package/lib/thin/sqlnet/connStrategy.js +4 -2
  29. package/lib/thin/sqlnet/ezConnectResolver.js +9 -5
  30. package/lib/thin/sqlnet/navNodes.js +3 -3
  31. package/lib/thin/sqlnet/networkSession.js +10 -10
  32. package/lib/thin/sqlnet/ntTcp.js +38 -25
  33. package/lib/thin/sqlnet/packet.js +8 -8
  34. package/lib/thin/sqlnet/paramParser.js +5 -8
  35. package/lib/thin/statement.js +1 -0
  36. package/lib/thin/util.js +21 -0
  37. package/lib/version.js +1 -1
  38. package/package.json +1 -1
  39. package/build/Release/oracledb-6.0.1-darwin-x64.node-buildinfo.txt +0 -1
  40. package/build/Release/oracledb-6.0.1-js-buildinfo.txt +0 -1
  41. package/build/Release/oracledb-6.0.1-linux-arm64.node-buildinfo.txt +0 -1
  42. package/build/Release/oracledb-6.0.1-linux-x64.node-buildinfo.txt +0 -1
  43. package/build/Release/oracledb-6.0.1-win32-x64.node-buildinfo.txt +0 -1
  44. /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
- this.add_NLPListElement(uname, nvp);
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 = "";
@@ -93,6 +93,7 @@ class Statement {
93
93
  this.queryVars = [];
94
94
  this.bindInfoDict = new Map();
95
95
  this.requiresFullExecute = false;
96
+ this.noPrefetch = false;
96
97
  this.returnToCache = false;
97
98
  this.numColumns = 0;
98
99
  this.lastRowIndex;
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
@@ -31,6 +31,6 @@
31
31
  module.exports = {
32
32
  VERSION_MAJOR: 6,
33
33
  VERSION_MINOR: 0,
34
- VERSION_PATCH: 1,
34
+ VERSION_PATCH: 3,
35
35
  VERSION_SUFFIX: ''
36
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oracledb",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "A Node.js module for Oracle Database access from JavaScript and TypeScript",
5
5
  "license": "(Apache-2.0 OR UPL-1.0)",
6
6
  "homepage": "http://oracle.github.io/node-oracledb/",
@@ -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