| Summary: | Expecting decimal ISA to be based on field definition rather than actual value | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> | ||||
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jeffdouglas | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
fixed verified 201109191052 Created attachment 203836 [details]
run driver program
Seeing the same problem when passing a decimal to a function with an Any or Number parameter. Project in attached file. Run the driver program. I'm expecting all variations to write out expected. this is because we haven't implemented the number support as yet fixed. Verified 201110120952 |
Based on RBD, I'm expecting decimal ISA to be based on the field definition rather than actual value. I expect these variations to write out true to the console. Used install build 201109150902 program driver2 type BasicProgram {} function main() implicitDec05D02 decimal(5,2); explicitDec05D02 decimal(5,2) = 123.45; nullDec decimal(5,2)?; expecting boolean = true; actual boolean = implicitDec05D02 isa decimal(5,2); syslib.writestdout("implicitDec05D02 isa decimal(5,2) " + (actual == expecting)); actual = explicitDec05D02 isa decimal(5,2); syslib.writestdout("explicitDec05D02 isa decimal(5,2) " + (actual == expecting)); implicitDec05D02 = 1.2; actual = implicitDec05D02 isa decimal(5,2); syslib.writestdout("implicitDec05D02=1.2 isa decimal(5,2) " + (actual == expecting)); expecting = false; actual = implicitDec05D02 isa decimal(2,1); syslib.writestdout("implicitDec05D02=1.2 isa decimal(2,1) " + (actual == expecting)); actual = nullDec isa decimal(5,2); syslib.writestdout("nullDec isa decimal(5,2) " + (actual == expecting)); end end