@zowe/db2-for-zowe-cli 6.1.8 → 6.1.9
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/lib/api/CallSP.js +8 -4
- package/lib/api/CallSP.js.map +1 -1
- package/lib/api/ConnectionString.js +12 -13
- package/lib/api/ConnectionString.js.map +1 -1
- package/lib/api/DB2Constants.d.ts +2 -2
- package/lib/api/DB2Constants.js +3 -2
- package/lib/api/DB2Constants.js.map +1 -1
- package/lib/api/ExecuteSQL.js +15 -5
- package/lib/api/ExecuteSQL.js.map +1 -1
- package/lib/api/ExportTable.js +9 -5
- package/lib/api/ExportTable.js.map +1 -1
- package/lib/api/ExportTableSQL.js +1 -2
- package/lib/api/ExportTableSQL.js.map +1 -1
- package/lib/api/doc/IDB2Column.d.ts +2 -2
- package/lib/cli/call/procedure/Procedure.handler.js +1 -2
- package/lib/cli/call/procedure/Procedure.handler.js.map +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +7 -7
package/lib/api/CallSP.js
CHANGED
|
@@ -11,13 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.CallSP = void 0;
|
|
14
|
-
const util_1 = require("util");
|
|
15
14
|
const ibmdb = require("ibm_db");
|
|
16
15
|
const IDB2Parameter_1 = require("./doc/IDB2Parameter");
|
|
17
16
|
const SessionValidator_1 = require("./SessionValidator");
|
|
18
17
|
const ConnectionString_1 = require("./ConnectionString");
|
|
19
|
-
const DB2Constants_1 = require("./DB2Constants");
|
|
20
18
|
const DB2Error_1 = require("./DB2Error");
|
|
19
|
+
const DB2Constants_1 = require("./DB2Constants");
|
|
21
20
|
/**
|
|
22
21
|
* Class to handle the invocation of the stored procedures
|
|
23
22
|
* @export
|
|
@@ -47,19 +46,24 @@ class CallSP {
|
|
|
47
46
|
const query = `CALL ${routineName}`;
|
|
48
47
|
let result;
|
|
49
48
|
let outVarCount = 0;
|
|
49
|
+
const newParameters = [];
|
|
50
50
|
// Count parameters with type OUTPUT or INOUT as they will be returned in the result set.
|
|
51
|
-
if (
|
|
51
|
+
if (parameters != null) {
|
|
52
52
|
for (const parameter of parameters) {
|
|
53
53
|
if (parameter.ParamType === IDB2Parameter_1.DB2_PARM_INOUT || parameter.ParamType === IDB2Parameter_1.DB2_PARM_OUTPUT) {
|
|
54
54
|
outVarCount++;
|
|
55
55
|
}
|
|
56
|
+
if (parameter.ParamType == undefined) {
|
|
57
|
+
parameter.ParamType = IDB2Parameter_1.DB2_PARM_INPUT;
|
|
58
|
+
}
|
|
59
|
+
newParameters.push(parameter);
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
try {
|
|
59
63
|
const db2 = ibmdb.openSync(connectionString, options);
|
|
60
64
|
// Prepare and execute the statement
|
|
61
65
|
const preparedStatement = db2.prepareSync(query);
|
|
62
|
-
result = preparedStatement.executeSync(
|
|
66
|
+
result = preparedStatement.executeSync(newParameters);
|
|
63
67
|
// Extract INOUT and OUTPUT parameters
|
|
64
68
|
if (outVarCount !== 0 && Array.isArray(result)) {
|
|
65
69
|
// If there are OUT/INOUT parameters, then ODBC driver returns an array, where
|
package/lib/api/CallSP.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallSP.js","sourceRoot":"","sources":["../../src/api/CallSP.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF
|
|
1
|
+
{"version":3,"file":"CallSP.js","sourceRoot":"","sources":["../../src/api/CallSP.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,gCAAgC;AAEhC,uDAAqG;AAErG,yDAAsD;AACtD,yDAAsD;AACtD,yCAAsC;AACtC,iDAA8C;AAE9C;;;;GAIG;AACH,MAAa,MAAM;IAEf;;;;;;;;OAQG;IACI,MAAM,CAAC,UAAU,CAAC,OAAoB,EAAE,WAAmB,EAAE,UAA4B;QAC5F,mCAAgB,CAAC,QAAQ,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gBAC7C,kEAAkE;gBAClE,OAAO,WAAW,GAAG,CAAC,EAAE,CAAC;oBACrB,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;oBACzC,WAAW,EAAE,CAAC;gBAClB,CAAC;gBACD,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC;YACD,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;YACnC,yBAAyB;YACzB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBACd,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;YACD,iCAAiC;YACjC,OAAO,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC;gBAC9B,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;YACjD,CAAC;YACD,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC;YACxB,MAAM,CAAC,SAAS,EAAE,CAAC;YACnB,GAAG,CAAC,SAAS,EAAE,CAAC;QACpB,CAAC;QACD,OAAO,GAAG,EAAE,CAAC;YACT,mBAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,IAAI,CAAC,OAAoB,EAAE,WAAmB,EAAE,GAAG,UAA2B;QACxF,OAAO,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IAC/D,CAAC;CACJ;AApFD,wBAoFC"}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.ConnectionString = void 0;
|
|
14
|
-
const util_1 = require("util");
|
|
15
14
|
/**
|
|
16
15
|
* DB2 server APIs
|
|
17
16
|
* @class DB2
|
|
@@ -26,22 +25,22 @@ class ConnectionString {
|
|
|
26
25
|
*/
|
|
27
26
|
static buildFromSession(session) {
|
|
28
27
|
let connectionString = "DRIVER={DB2 ODBC Driver};";
|
|
29
|
-
if (
|
|
28
|
+
if (session.database != null) {
|
|
30
29
|
connectionString += `DATABASE=${session.database};`;
|
|
31
30
|
}
|
|
32
|
-
if (
|
|
31
|
+
if (session.hostname != null) {
|
|
33
32
|
connectionString += `HOSTNAME=${session.hostname};`;
|
|
34
33
|
}
|
|
35
|
-
if (
|
|
34
|
+
if (session.port != null) {
|
|
36
35
|
connectionString += `PORT=${session.port};PROTOCOL=TCPIP;`;
|
|
37
36
|
}
|
|
38
|
-
if (
|
|
37
|
+
if (session.user != null) {
|
|
39
38
|
connectionString += `UID=${session.user};`;
|
|
40
39
|
}
|
|
41
|
-
if (
|
|
40
|
+
if (session.password != null) {
|
|
42
41
|
connectionString += `PWD=${session.password};`;
|
|
43
42
|
}
|
|
44
|
-
if (
|
|
43
|
+
if (session.sslFile != null) {
|
|
45
44
|
connectionString += `Security=SSL;SSLServerCertificate=${session.sslFile};`;
|
|
46
45
|
}
|
|
47
46
|
return connectionString;
|
|
@@ -58,22 +57,22 @@ class ConnectionString {
|
|
|
58
57
|
*/
|
|
59
58
|
static build(hostname, port, user, password, database, sslFile) {
|
|
60
59
|
let connectionString = "DRIVER={DB2 ODBC Driver};";
|
|
61
|
-
if (
|
|
60
|
+
if (database != null) {
|
|
62
61
|
connectionString += `DATABASE=${database};`;
|
|
63
62
|
}
|
|
64
|
-
if (
|
|
63
|
+
if (hostname != null) {
|
|
65
64
|
connectionString += `HOSTNAME=${hostname};`;
|
|
66
65
|
}
|
|
67
|
-
if (
|
|
66
|
+
if (port != null) {
|
|
68
67
|
connectionString += `PORT=${port};PROTOCOL=TCPIP;`;
|
|
69
68
|
}
|
|
70
|
-
if (
|
|
69
|
+
if (user != null) {
|
|
71
70
|
connectionString += `UID=${user};`;
|
|
72
71
|
}
|
|
73
|
-
if (
|
|
72
|
+
if (password != null) {
|
|
74
73
|
connectionString += `PWD=${password};`;
|
|
75
74
|
}
|
|
76
|
-
if (
|
|
75
|
+
if (sslFile != null) {
|
|
77
76
|
connectionString += `Security=SSL;SSLServerCertificate=${sslFile};`;
|
|
78
77
|
}
|
|
79
78
|
return connectionString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionString.js","sourceRoot":"","sources":["../../src/api/ConnectionString.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;
|
|
1
|
+
{"version":3,"file":"ConnectionString.js","sourceRoot":"","sources":["../../src/api/ConnectionString.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;;;GAIG;AACH,MAAa,gBAAgB;IAEzB;;;;;OAKG;IACI,MAAM,CAAC,gBAAgB,CAAC,OAAoB;QAC/C,IAAI,gBAAgB,GAAW,2BAA2B,CAAC;QAC3D,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YAC3B,gBAAgB,IAAI,YAAY,OAAO,CAAC,QAAQ,GAAG,CAAC;QACxD,CAAC;QACD,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YAC3B,gBAAgB,IAAI,YAAY,OAAO,CAAC,QAAQ,GAAG,CAAC;QACxD,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YACvB,gBAAgB,IAAI,QAAQ,OAAO,CAAC,IAAI,kBAAkB,CAAC;QAC/D,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YACvB,gBAAgB,IAAI,OAAO,OAAO,CAAC,IAAI,GAAG,CAAC;QAC/C,CAAC;QACD,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YAC3B,gBAAgB,IAAI,OAAO,OAAO,CAAC,QAAQ,GAAG,CAAC;QACnD,CAAC;QACD,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;YAC1B,gBAAgB,IAAI,qCAAqC,OAAO,CAAC,OAAO,GAAG,CAAC;QAChF,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED;;;;;;;;;OASG;IACI,MAAM,CAAC,KAAK,CAAC,QAAiB,EAAE,IAAa,EAAE,IAAa,EAAE,QAAiB,EAAE,QAAiB,EAAE,OAAgB;QACvH,IAAI,gBAAgB,GAAW,2BAA2B,CAAC;QAC3D,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACnB,gBAAgB,IAAI,YAAY,QAAQ,GAAG,CAAC;QAChD,CAAC;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACnB,gBAAgB,IAAI,YAAY,QAAQ,GAAG,CAAC;QAChD,CAAC;QACD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACf,gBAAgB,IAAI,QAAQ,IAAI,kBAAkB,CAAC;QACvD,CAAC;QACD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACf,gBAAgB,IAAI,OAAO,IAAI,GAAG,CAAC;QACvC,CAAC;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACnB,gBAAgB,IAAI,OAAO,QAAQ,GAAG,CAAC;QAC3C,CAAC;QACD,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;YAClB,gBAAgB,IAAI,qCAAqC,OAAO,GAAG,CAAC;QACxE,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;CAEJ;AAhED,4CAgEC"}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @class DB2Constants
|
|
5
5
|
*/
|
|
6
6
|
export declare class DB2Constants {
|
|
7
|
-
static readonly FETCH_MODE_ARRAY:
|
|
8
|
-
static readonly FETCH_MODE_OBJECT:
|
|
7
|
+
static readonly FETCH_MODE_ARRAY: import("ibm_db").FetchMode;
|
|
8
|
+
static readonly FETCH_MODE_OBJECT: import("ibm_db").FetchMode;
|
|
9
9
|
}
|
package/lib/api/DB2Constants.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.DB2Constants = void 0;
|
|
14
|
+
const ibm_db_1 = require("ibm_db");
|
|
14
15
|
/**
|
|
15
16
|
* Class to contain DB2 related constants
|
|
16
17
|
* @export
|
|
@@ -19,6 +20,6 @@ exports.DB2Constants = void 0;
|
|
|
19
20
|
class DB2Constants {
|
|
20
21
|
}
|
|
21
22
|
exports.DB2Constants = DB2Constants;
|
|
22
|
-
DB2Constants.FETCH_MODE_ARRAY =
|
|
23
|
-
DB2Constants.FETCH_MODE_OBJECT =
|
|
23
|
+
DB2Constants.FETCH_MODE_ARRAY = ibm_db_1.FETCH_ARRAY;
|
|
24
|
+
DB2Constants.FETCH_MODE_OBJECT = ibm_db_1.FETCH_OBJECT;
|
|
24
25
|
//# sourceMappingURL=DB2Constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DB2Constants.js","sourceRoot":"","sources":["../../src/api/DB2Constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF;;;;GAIG;AACH,MAAa,YAAY;;AAAzB,oCAGC;AAF0B,6BAAgB,
|
|
1
|
+
{"version":3,"file":"DB2Constants.js","sourceRoot":"","sources":["../../src/api/DB2Constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,mCAAmD;AAEnD;;;;GAIG;AACH,MAAa,YAAY;;AAAzB,oCAGC;AAF0B,6BAAgB,GAAG,oBAAW,CAAC;AAC/B,8BAAiB,GAAG,qBAAY,CAAC"}
|
package/lib/api/ExecuteSQL.js
CHANGED
|
@@ -13,9 +13,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.ExecuteSQL = void 0;
|
|
14
14
|
const ibmdb = require("ibm_db");
|
|
15
15
|
const ConnectionString_1 = require("./ConnectionString");
|
|
16
|
-
const DB2Constants_1 = require("./DB2Constants");
|
|
17
16
|
const DB2Error_1 = require("./DB2Error");
|
|
17
|
+
const IDB2Parameter_1 = require("./doc/IDB2Parameter");
|
|
18
18
|
const SessionValidator_1 = require("./SessionValidator");
|
|
19
|
+
const DB2Constants_1 = require("./DB2Constants");
|
|
19
20
|
/**
|
|
20
21
|
* Class to handle execution of SQL statements
|
|
21
22
|
* @export
|
|
@@ -43,15 +44,24 @@ class ExecuteSQL {
|
|
|
43
44
|
fetchMode: DB2Constants_1.DB2Constants.FETCH_MODE_OBJECT,
|
|
44
45
|
};
|
|
45
46
|
let result;
|
|
47
|
+
const newParameters = [];
|
|
46
48
|
try {
|
|
47
49
|
this.mConnection = ibmdb.openSync(this.mConnectionString, options);
|
|
48
|
-
|
|
50
|
+
if (parameters != null) {
|
|
51
|
+
for (const parameter of parameters) {
|
|
52
|
+
if (parameter.ParamType == undefined) {
|
|
53
|
+
parameter.ParamType = IDB2Parameter_1.DB2_PARM_INPUT;
|
|
54
|
+
}
|
|
55
|
+
newParameters.push(parameter);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
result = this.mConnection.queryResultSync(sql, newParameters);
|
|
49
59
|
if (result instanceof Error) {
|
|
50
60
|
throw result;
|
|
51
61
|
}
|
|
52
|
-
yield result.fetchAllSync();
|
|
53
|
-
while (result.moreResultsSync()) {
|
|
54
|
-
yield result.fetchAllSync();
|
|
62
|
+
Array.isArray(result) ? yield result[0].fetchAllSync() : yield result.fetchAllSync();
|
|
63
|
+
while (Array.isArray(result) ? result[0].moreResultsSync() : result.moreResultsSync()) {
|
|
64
|
+
Array.isArray(result) ? yield result[0].fetchAllSync() : yield result.fetchAllSync();
|
|
55
65
|
}
|
|
56
66
|
this.mConnection.closeSync();
|
|
57
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteSQL.js","sourceRoot":"","sources":["../../src/api/ExecuteSQL.ts"],"names":[],"mappings":";AAAA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KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAA,CAAC,CAAC,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC;YACpF,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC;gBACnF,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAA,CAAC,CAAC,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC;YACxF,CAAC;YACD,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,GAAG,EAAE,CAAC;YACT,mBAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;IACL,CAAC;CACJ;AA/DD,gCA+DC"}
|
package/lib/api/ExportTable.js
CHANGED
|
@@ -23,10 +23,10 @@ exports.ExportTable = void 0;
|
|
|
23
23
|
const imperative_1 = require("@zowe/imperative");
|
|
24
24
|
const ibmdb = require("ibm_db");
|
|
25
25
|
const ConnectionString_1 = require("./ConnectionString");
|
|
26
|
-
const DB2Constants_1 = require("./DB2Constants");
|
|
27
26
|
const DB2Error_1 = require("./DB2Error");
|
|
28
27
|
const Messages_1 = require("./doc/Messages");
|
|
29
28
|
const SessionValidator_1 = require("./SessionValidator");
|
|
29
|
+
const DB2Constants_1 = require("./DB2Constants");
|
|
30
30
|
/**
|
|
31
31
|
* Class to handle exporting of DB2 tables
|
|
32
32
|
* @export
|
|
@@ -77,7 +77,11 @@ class ExportTable {
|
|
|
77
77
|
if (err !== null) {
|
|
78
78
|
reject(err);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
let data = [];
|
|
81
|
+
if (res[0] && !(Array.isArray(res[0]))) {
|
|
82
|
+
data = res;
|
|
83
|
+
}
|
|
84
|
+
resolve(data);
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
87
|
else {
|
|
@@ -104,12 +108,12 @@ class ExportTable {
|
|
|
104
108
|
if (result instanceof Error) {
|
|
105
109
|
throw result;
|
|
106
110
|
}
|
|
107
|
-
let row = result.fetchSync();
|
|
111
|
+
let row = Array.isArray(result) ? result[0].fetchSync() : result.fetchSync();
|
|
108
112
|
while (row != null) {
|
|
109
113
|
yield row;
|
|
110
|
-
row = result.fetchSync();
|
|
114
|
+
row = Array.isArray(result) ? result[0].fetchSync() : result.fetchSync();
|
|
111
115
|
}
|
|
112
|
-
result.closeSync();
|
|
116
|
+
Array.isArray(result) ? result[0].closeSync() : result.closeSync();
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
119
|
* Extract a list of columns out of a table metadata
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportTable.js","sourceRoot":"","sources":["../../src/api/ExportTable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,iDAAqE;AACrE,gCAAgC;AAEhC,yDAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"ExportTable.js","sourceRoot":"","sources":["../../src/api/ExportTable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,iDAAqE;AACrE,gCAAgC;AAEhC,yDAAsD;AACtD,yCAAsC;AAEtC,6CAA6D;AAC7D,yDAAsD;AACtD,iDAA8C;AAE9C;;;;GAIG;AACH,MAAsB,WAAW;IA0C7B;;;;;OAKG;IACH,YAAY,OAAoB,EAAE,YAAoB,EAAE,SAAiB;QACrE,mCAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnC,6BAAgB,CAAC,sBAAsB,CAAC,YAAY,EAAE,yBAAc,CAAC,OAAO,CAAC,CAAC;QAC9E,6BAAgB,CAAC,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,CAAC;QAC5E,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;YACjB,MAAM,GAAG,CAAC;YACV,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC5E,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IACtE,CAAC;IAED;;;OAGG;IACI,cAAc;QACjB,MAAM,WAAW,GAAa,EAAE,CAAC;QACjC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAClC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;CAGJ;AA7ID,kCA6IC"}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.ExportTableSQL = void 0;
|
|
14
14
|
const imperative_1 = require("@zowe/imperative");
|
|
15
|
-
const util_1 = require("util");
|
|
16
15
|
const ExportTable_1 = require("./ExportTable");
|
|
17
16
|
/**
|
|
18
17
|
* Class to handle exporting DB2 tables
|
|
@@ -68,7 +67,7 @@ class ExportTableSQL extends ExportTable_1.ExportTable {
|
|
|
68
67
|
*/
|
|
69
68
|
escape(columnName, value) {
|
|
70
69
|
const columnMeta = this.getColumnMeta(columnName);
|
|
71
|
-
if (
|
|
70
|
+
if (value === null) {
|
|
72
71
|
return "NULL";
|
|
73
72
|
}
|
|
74
73
|
switch (columnMeta.TYPE_NAME) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportTableSQL.js","sourceRoot":"","sources":["../../src/api/ExportTableSQL.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAAmD;
|
|
1
|
+
{"version":3,"file":"ExportTableSQL.js","sourceRoot":"","sources":["../../src/api/ExportTableSQL.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAAmD;AAEnD,+CAA4C;AAE5C;;;;GAIG;AACH,MAAa,cAAe,SAAQ,yBAAW;IAE3C;;;;;OAKG;IACH,YAAY,OAAoB,EAAE,YAAoB,EAAE,SAAiB;QACrE,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACI,CAAC,MAAM;QACV,IAAI,CAAC;YACD,IAAI,GAAG,CAAC;YACR,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;gBAC/B,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC/C,CAAC;QACL,CAAC;QACD,OAAO,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,4BAAe,CAAC,EAAC,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;QACrD,CAAC;IACL,CAAC;IAED;;;;OAIG;IACI,oBAAoB,CAAC,IAAS;QACjC,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAU,EAAE,CAAC;QACzB,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACnC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC3D,CAAC;QACD,MAAM,UAAU,GAAW,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,UAAU,GAAW,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,eAAe,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,IAAI,UAAU,aAAa,UAAU,KAAK,CAAC;IAClG,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,UAAkB,EAAE,KAAU;QACxC,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACjB,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,QAAQ,UAAU,CAAC,SAAS,EAAE,CAAC;YAC3B,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,WAAW,CAAC;YACjB,KAAK,SAAS;gBACV,OAAO,IAAI,KAAK,GAAG,CAAC;YACxB;gBACI,OAAO,KAAK,CAAC;QACrB,CAAC;IACL,CAAC;CACJ;AApED,wCAoEC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @interface IDB2Column
|
|
4
4
|
* @export
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type IDB2Column = {
|
|
7
7
|
/**
|
|
8
8
|
* The catalog name
|
|
9
9
|
* @type {string}
|
|
@@ -122,4 +122,4 @@ export interface IDB2Column {
|
|
|
122
122
|
* @memberof IDB2Column
|
|
123
123
|
*/
|
|
124
124
|
IS_NULLABLE: string;
|
|
125
|
-
}
|
|
125
|
+
};
|
|
@@ -21,7 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
const imperative_1 = require("@zowe/imperative");
|
|
23
23
|
const index_1 = require("../../../index");
|
|
24
|
-
const util_1 = require("util");
|
|
25
24
|
/**
|
|
26
25
|
* Command handler for calling a DB2 stored procedure
|
|
27
26
|
* @export
|
|
@@ -35,7 +34,7 @@ class ProcedureHandler extends index_1.DB2BaseHandler {
|
|
|
35
34
|
* @returns {IDB2Parameter[]}
|
|
36
35
|
*/
|
|
37
36
|
static parseParameters(parameters) {
|
|
38
|
-
if (
|
|
37
|
+
if (parameters == null) {
|
|
39
38
|
return [];
|
|
40
39
|
}
|
|
41
40
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Procedure.handler.js","sourceRoot":"","sources":["../../../../src/cli/call/procedure/Procedure.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,0CAAmH;
|
|
1
|
+
{"version":3,"file":"Procedure.handler.js","sourceRoot":"","sources":["../../../../src/cli/call/procedure/Procedure.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,0CAAmH;AAEnH;;;;;GAKG;AACH,MAAqB,gBAAiB,SAAQ,sBAAc;IAExD;;;;OAIG;IACI,MAAM,CAAC,eAAe,CAAC,UAAiB;QAC3C,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;YACrB,OAAO,EAAE,CAAC;QACd,CAAC;aACI,CAAC;YACF,MAAM,MAAM,GAAoB,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBACrD,MAAM,KAAK,GAAkB;oBACzB,SAAS,EAAE,uBAAe;oBAC1B,IAAI,EAAE,KAAK;iBACd,CAAC;gBACF,OAAO,KAAK,CAAC;YACjB,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAEY,qBAAqB,CAAC,MAA0B,EAAE,OAAwB;;YACnF,MAAM,UAAU,GAAG,OAAO,CAAC,QAAuB,CAAC;YAEnD,MAAM,OAAO,GAAW,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;YACjD,MAAM,UAAU,GAAoB,gBAAgB,CAAC,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YAElG,MAAM,QAAQ,GAAiB,cAAM,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAElF,yBAAyB;YACzB,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;YAEpE,wDAAwD;YACxD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE1C,CAAC;KAAA;CACJ;AAtCD,mCAsCC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zowe/db2-for-zowe-cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.9",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@zowe/db2-for-zowe-cli",
|
|
9
|
-
"version": "6.1.
|
|
9
|
+
"version": "6.1.9",
|
|
10
10
|
"license": "EPL-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"ibm_db": "3.3.
|
|
12
|
+
"ibm_db": "3.3.4"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@types/ibm_db": "^2.0.16",
|
|
16
15
|
"@types/jest": "^29.5.12",
|
|
17
|
-
"@types/node": "^
|
|
16
|
+
"@types/node": "^20.0.0",
|
|
18
17
|
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
19
18
|
"@typescript-eslint/parser": "^7.1.0",
|
|
20
|
-
"@zowe/cli": "^8.27.
|
|
21
|
-
"@zowe/cli-test-utils": "^8.27.
|
|
19
|
+
"@zowe/cli": "^8.27.4",
|
|
20
|
+
"@zowe/cli-test-utils": "^8.27.4",
|
|
22
21
|
"@zowe/imperative": "^8.0.0",
|
|
23
22
|
"env-cmd": "^10.1.0",
|
|
24
23
|
"eslint": "^8.57.0",
|
|
24
|
+
"eslint-plugin-deprecation": "^3.0.0",
|
|
25
25
|
"eslint-plugin-jest": "^27.9.0",
|
|
26
26
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
27
27
|
"jest": "^29.7.0",
|
|
28
28
|
"jest-environment-node-debug": "^2.0.0",
|
|
29
29
|
"jest-html-reporter": "^3.10.2",
|
|
30
30
|
"jest-junit": "^16.0.0",
|
|
31
|
-
"jest-stare": "^2.5.
|
|
31
|
+
"jest-stare": "^2.5.3",
|
|
32
32
|
"madge": "^6.1.0",
|
|
33
33
|
"rimraf": "^5.0.5",
|
|
34
34
|
"ts-jest": "^29.1.2",
|
|
@@ -332,18 +332,18 @@
|
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
"node_modules/ibm_db": {
|
|
335
|
-
"version": "3.3.
|
|
336
|
-
"integrity": "sha512-
|
|
335
|
+
"version": "3.3.4",
|
|
336
|
+
"integrity": "sha512-H8JrfyPIz8UmI3llP2JKroYcacegml7+sjLJBvdVTsuNUDWzbZ+FEefNMvH+VRHSgNwKZQUIAHSUHhXay7iaJw==",
|
|
337
337
|
"hasInstallScript": true,
|
|
338
338
|
"license": "MIT",
|
|
339
339
|
"dependencies": {
|
|
340
340
|
"adm-zip": "^0.5.16",
|
|
341
|
-
"axios": "^1.
|
|
341
|
+
"axios": "^1.12.0",
|
|
342
342
|
"big-integer": "^1.6.51",
|
|
343
343
|
"bindings": "^1.5.0",
|
|
344
344
|
"fs-extra": "^11.1.1",
|
|
345
345
|
"lodash": "^4.17.21",
|
|
346
|
-
"nan": "^2.
|
|
346
|
+
"nan": "^2.23.0",
|
|
347
347
|
"q": "^1.5.1",
|
|
348
348
|
"targz": "^1.0.1"
|
|
349
349
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zowe/db2-for-zowe-cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.9",
|
|
4
4
|
"description": "IBM® Db2® Plug-in for Zowe CLI",
|
|
5
5
|
"author": "Zowe",
|
|
6
6
|
"license": "EPL-2.0",
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
"configurationModule": "lib/imperative.js"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"ibm_db": "3.3.
|
|
40
|
+
"ibm_db": "3.3.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@zowe/imperative": "^8.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/ibm_db": "^2.0.16",
|
|
47
46
|
"@types/jest": "^29.5.12",
|
|
48
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^20.0.0",
|
|
49
48
|
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
50
49
|
"@typescript-eslint/parser": "^7.1.0",
|
|
51
|
-
"@zowe/cli": "^8.27.
|
|
52
|
-
"@zowe/cli-test-utils": "^8.27.
|
|
50
|
+
"@zowe/cli": "^8.27.4",
|
|
51
|
+
"@zowe/cli-test-utils": "^8.27.4",
|
|
53
52
|
"@zowe/imperative": "^8.0.0",
|
|
54
53
|
"env-cmd": "^10.1.0",
|
|
55
54
|
"eslint": "^8.57.0",
|
|
55
|
+
"eslint-plugin-deprecation": "^3.0.0",
|
|
56
56
|
"eslint-plugin-jest": "^27.9.0",
|
|
57
57
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
58
58
|
"jest": "^29.7.0",
|
|
59
59
|
"jest-environment-node-debug": "^2.0.0",
|
|
60
60
|
"jest-html-reporter": "^3.10.2",
|
|
61
61
|
"jest-junit": "^16.0.0",
|
|
62
|
-
"jest-stare": "^2.5.
|
|
62
|
+
"jest-stare": "^2.5.3",
|
|
63
63
|
"madge": "^6.1.0",
|
|
64
64
|
"rimraf": "^5.0.5",
|
|
65
65
|
"ts-jest": "^29.1.2",
|