Commit 1f5421f
committed
Fixed some issues found during unit testing
ixml.js
- line 293 changed const to let ran into reassignment error with const
- changed iXmlNodeSqlParmOpen set io attribute, incorrectly set name attribute before
xmlToJson
- When converting <sql> xmlOut stmt: property would return ']]>' from CDATA output
- Example: "stmt":"SELECT '' AS BLANK, STATE FROM QIWS.QCUSTCDT]]>"
- Not sure if every version of XMLSERVICE adds CDATA to returned statement.
- Added a check to see if the matched success string contains CDATA and replaced extra characters.
iConn.setTimeout()
- could not be set, if condition checked flag instead of seconds
iSql.rowCount()
- added check to allow optional options object
iSql.count()
- called iXmlNodeSqlRowCount instead of iXmlNodeSqlCount
iProd.getProductInfo
- Fixed issue that occured when calling with (productId, cb) signature
- the callback function definition was being appended to the options
causing the pgm call to fail1 parent 163939c commit 1f5421f
3 files changed
+28
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
| |||
224 | 230 | | |
225 | 231 | | |
226 | 232 | | |
227 | | - | |
| 233 | + | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
| |||
535 | 541 | | |
536 | 542 | | |
537 | 543 | | |
538 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
539 | 548 | | |
540 | 549 | | |
541 | 550 | | |
542 | | - | |
| 551 | + | |
543 | 552 | | |
544 | 553 | | |
545 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
0 commit comments