Skip to content

Commit 85f2d52

Browse files
Merge pull request #455 from codefori/fix/self76
Enable SELF view for 7.6
2 parents 8c727fd + 5851d42 commit 85f2d52

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/IBMiDetail.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export type Db2FeatureIds = `SELF`;
77
const featureRequirements: { [id in Db2FeatureIds]: { [osVersion: number]: number } } = {
88
'SELF': {
99
7.4: 26,
10-
7.5: 5
10+
7.5: 5,
11+
7.6: 1
1112
}
1213
};
1314

@@ -38,16 +39,15 @@ export class IBMiDetail {
3839
this.setFeatureSupport(featureId, false);
3940
}
4041

41-
const instance = getInstance();
42-
const content = instance.getContent();
42+
const connection = getInstance().getConnection();
4343

4444
let levelCheckFailed = false;
4545

46-
const versionResults = await content.runSQL(`select OS_VERSION concat '.' concat OS_RELEASE as VERSION from sysibmadm.env_sys_info`);
46+
const versionResults = await connection.runSQL(`select OS_VERSION concat '.' concat OS_RELEASE as VERSION from sysibmadm.env_sys_info`);
4747
this.version = Number(versionResults[0].VERSION);
4848

4949
try {
50-
const db2LevelResults = await content.runSQL([
50+
const db2LevelResults = await connection.runSQL([
5151
`select max(ptf_group_level) as HIGHEST_DB2_PTF_GROUP_LEVEL`,
5252
`from qsys2.group_ptf_info`,
5353
`where PTF_GROUP_DESCRIPTION like 'DB2 FOR IBM I%' and`,
@@ -77,11 +77,8 @@ export class IBMiDetail {
7777
}
7878

7979
private async validateSelfInstallation() {
80-
const instance = getInstance();
81-
const content = instance.getContent();
82-
8380
try {
84-
await content.runSQL(`values SYSIBMADM.SELFCODES`);
81+
await getInstance().getConnection().runSQL(`values SYSIBMADM.SELFCODES`);
8582

8683
// This means we have the SELF feature
8784
return true;

0 commit comments

Comments
 (0)