File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,24 @@ func (p *PCFParameter) Bytes() []byte {
140
140
endian .PutUint32 (buf [offset :], uint32 (p .Int64Value [0 ]))
141
141
offset += 4
142
142
143
+ case C .MQCFT_INTEGER_LIST :
144
+ l := len (p .Int64Value )
145
+ buf = make ([]byte , C .MQCFIL_STRUC_LENGTH_FIXED + 4 * l )
146
+ offset := 0
147
+
148
+ endian .PutUint32 (buf [offset :], uint32 (p .Type ))
149
+ offset += 4
150
+ endian .PutUint32 (buf [offset :], uint32 (len (buf )))
151
+ offset += 4
152
+ endian .PutUint32 (buf [offset :], uint32 (p .Parameter ))
153
+ offset += 4
154
+ endian .PutUint32 (buf [offset :], uint32 (l ))
155
+ offset += 4
156
+ for i := 0 ; i < l ; i ++ {
157
+ endian .PutUint32 (buf [offset :], uint32 (p .Int64Value [i ]))
158
+ offset += 4
159
+ }
160
+
143
161
case C .MQCFT_STRING :
144
162
buf = make ([]byte , C .MQCFST_STRUC_LENGTH_FIXED + roundTo4 (int32 (len (p .String [0 ]))))
145
163
offset := 0
@@ -154,6 +172,8 @@ func (p *PCFParameter) Bytes() []byte {
154
172
endian .PutUint32 (buf [offset :], uint32 (len (p .String [0 ])))
155
173
offset += 4
156
174
copy (buf [offset :], []byte (p .String [0 ]))
175
+ default :
176
+ fmt .Println ("mqiPCF.go: Trying to serialise PCF parameter. Unknown PCF type " , p .Type )
157
177
}
158
178
return buf
159
179
}
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ func inquireQueueAttributes(objectPatternsList string) error {
212
212
213
213
// Can allow all the other fields to default
214
214
cfh .Command = ibmmq .MQCMD_INQUIRE_Q
215
+ cfh .ParameterCount = 0
215
216
216
217
// Add the parameters one at a time into a buffer
217
218
pcfparm := new (ibmmq.PCFParameter )
@@ -337,7 +338,6 @@ func parseQAttrData(cfh *ibmmq.MQCFH, buf []byte) {
337
338
if cfh .ParameterCount == 0 {
338
339
return
339
340
}
340
-
341
341
// Parse it once to extract the fields that are needed for the map key
342
342
for parmAvail && cfh .CompCode != ibmmq .MQCC_FAILED {
343
343
elem , bytesRead = ibmmq .ReadPCFParameter (buf [offset :])
You can’t perform that action at this time.
0 commit comments