Skip to content

Commit d190962

Browse files
committed
Fix broken ASP info
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent d307ef4 commit d190962

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/views/jobManager/editJob/systemTab.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ import { JDBCOptions } from "@ibm/mapepire-js/dist/src/types";
22
import { getBase, getInstance, loadBase } from "../../../base";
33
import { formatDescription } from ".";
44

5-
const autoCommitText = `
6-
Specifies the cursor sensitivity to request from the database. The behavior depends on the resultSetType:
7-
- ResultSet.TYPE_FORWARD_ONLY or ResultSet.TYPE_SCROLL_SENSITIVE means that the value of this property
8-
controls what cursor sensitivity the Java program requests from the database.
9-
- ResultSet.TYPE_SCROLL_INSENSITIVE causes this property to be ignored.
10-
`;
11-
125
const dbNameText = `
136
147
Specifies the database to use for a connection to an independent auxiliary storage pool (ASP). When you specify
@@ -129,7 +122,7 @@ export default function getSystemTab(options: JDBCOptions) {
129122
// )
130123
.addSelect(`database name`, `Database name`, [
131124
{text: `System Base`, description: `*SYSBAS`, value: ``, selected: options["database name"] === ``},
132-
...Object.values(connection.aspInfo).map(asp => ({text: asp, description: asp, value: asp, selected: options["database name"] === asp}))
125+
...Object.values(connection.getAllIAsps()).map(asp => ({text: asp.name, description: asp.name, value: asp.rdbName, selected: options["database name"] === asp.rdbName}))
133126
], formatDescription(dbNameText))
134127
.addSelect(
135128
`decfloat rounding mode`,

0 commit comments

Comments
 (0)