Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thknieling committed Feb 14, 2019
2 parents 6ef8a58 + 7080f46 commit 3812a4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/softwareag.com/cmd/database/databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ func Status(clientInstance *client.AdabasAdmin, dbid int, auth runtime.ClientAut
func Create(clientInstance *client.AdabasAdmin, dbid int, input string, auth runtime.ClientAuthInfoWriter) error {
params := offline.NewPostAdabasDatabaseParams()
params.Database = createDatabaseInstance(dbid, input)
params.Database.Dbid = int64(dbid)
if dbid > 0 {
params.Database.Dbid = int64(dbid)
}
resp, err := clientInstance.Offline.PostAdabasDatabase(params, auth)
if err != nil {
switch err.(type) {
Expand Down Expand Up @@ -572,7 +574,8 @@ func SetParameter(clientInstance *client.AdabasAdmin, dbid int, param string, au
if f.IsNil() && f.CanSet() {
switch v[0] {
case "NT", "TT", "NU", "NCL", "NISNHQ", "TNAE", "TNAA", "TNAX", "LAB", "LABX", "LBP",
"LWP", "LPXA", "ADATCPPORT", "ADATCPRECEIVER", "ADATCPATB", "APUUNITS", "APURECVS", "APUWORKERS",
"LWP", "LPXA", "ADATCPPORT", "ADATCPRECEIVER", "ADATCPATB", "ADATCPCONNECTIONS",
"APUUNITS", "APURECVS", "APUWORKERS",
"RPLBLOCKS", "RPLTOTAL", "RPLRECORDS", "WRITELIMIT":
i, err := strconv.Atoi(v[1])
if err != nil {
Expand Down

0 comments on commit 3812a4b

Please sign in to comment.