Skip to content

Commit e929b07

Browse files
authored
Merge pull request #3317 from bobcozzi/fix/library-info-detailed-info-no
Fix: add DETAILED_INFO=>'NO' to QSYS2.LIBRARY_INFO table function calls
2 parents f542b5d + 30519b2 commit e929b07

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/api/IBMi.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default class IBMi {
149149
/**
150150
* getConfigFile can return pre-defined configuration files,
151151
* but can lazy load new configuration files as well.
152-
*
152+
*
153153
* This does not load the configuration file from the server,
154154
* it only returns a ConfigFile instance. You should check the
155155
* state of the ConfigFile instance to see if it has been loaded,
@@ -288,7 +288,7 @@ export default class IBMi {
288288
if (connectionObject.useSshAgent) {
289289
// Determine the SSH agent path based on platform
290290
let agentPath: string;
291-
291+
292292
if (process.platform === 'win32') {
293293
// On Windows, use the OpenSSH named pipe
294294
agentPath = '\\\\.\\pipe\\openssh-ssh-agent';
@@ -301,7 +301,7 @@ export default class IBMi {
301301
agentPath = process.env.SSH_AUTH_SOCK;
302302
this.appendOutput(`Using SSH Agent: ${agentPath}\n`);
303303
}
304-
304+
305305
// Set agent and authentication options
306306
connectConfig.agent = agentPath;
307307
connectConfig.agentForward = true;
@@ -361,7 +361,7 @@ export default class IBMi {
361361
if (this.client.connection) {
362362
//end: Disconnected by the user
363363
this.client.connection.once(`end`, onDisconnected);
364-
//error/tiemout: connection dropped for some reason (details given in the SSHError type)
364+
//error/tiemout: connection dropped for some reason (details given in the SSHError type)
365365
this.client.connection.once(`error`, onDisconnected);
366366
this.client.connection.once(`timeout`, onDisconnected);
367367
}
@@ -1537,7 +1537,7 @@ export default class IBMi {
15371537
library = this.upperCaseName(library);
15381538
let libraryIASP = this.libraryAsps.get(library);
15391539
if (!libraryIASP) {
1540-
const [row] = await this.runSQL(`select IASP_NAME from table(QSYS2.LIBRARY_INFO('${library}'));`);
1540+
const [row] = await this.runSQL(`select IASP_NAME from table(QSYS2.LIBRARY_INFO('${library}', DETAILED_INFO => 'NO'));`);
15411541
libraryIASP = row?.IASP_NAME ? String(row.IASP_NAME) : "*SYSBAS";
15421542
this.libraryAsps.set(library, libraryIASP);
15431543
}
@@ -1579,7 +1579,7 @@ export default class IBMi {
15791579
this.ccsidCache.delete(cacheKey);
15801580
}
15811581

1582-
// Call getAttributes to fetch CCSID
1582+
// Call getAttributes to fetch CCSID
15831583
const attrs = await this.getContent().getAttributes(lookupPath, 'CCSID');
15841584
const ccsid = Number(attrs?.CCSID) || 0;
15851585

src/api/IBMiContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export default class IBMiContent {
472472
OBJTYPELIST => '*LIB',
473473
OBJECT_NAME => libs.ELEMENT
474474
)) AS os
475-
CROSS JOIN TABLE(QSYS2.LIBRARY_INFO(library_name => os.OBJNAME)) AS li
475+
CROSS JOIN TABLE(QSYS2.LIBRARY_INFO(library_name => os.OBJNAME, DETAILED_INFO => 'NO')) AS li
476476
`;
477477
const results = await this.ibmi.runSQL(statement);
478478

0 commit comments

Comments
 (0)