Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357852 - Expecting decimal ISA to be based on field definition rather than actual value
Summary: Expecting decimal ISA to be based on field definition rather than actual value
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 14:05 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments
run driver program (45.69 KB, application/x-zip-compressed)
2011-09-22 08:18 EDT, Kathy Carroll CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-09-15 14:05:07 EDT
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
Comment 1 Jeff Douglas CLA 2011-09-16 15:17:50 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-09-19 15:47:36 EDT
verified 201109191052
Comment 3 Kathy Carroll CLA 2011-09-22 08:18:30 EDT
Created attachment 203836 [details]
run driver program
Comment 4 Kathy Carroll CLA 2011-09-22 08:20:03 EDT
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.
Comment 5 Jeff Douglas CLA 2011-09-23 12:42:11 EDT
this is because we haven't implemented the number support as yet
Comment 6 Jeff Douglas CLA 2011-10-03 15:46:05 EDT
fixed.
Comment 7 Kathy Carroll CLA 2011-10-12 13:22:35 EDT
Verified 201110120952