Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364064

Summary: MVC not truncating extra decimals
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: smythew
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-11-17 12:06:51 EST
Use a "decimal(6,2)" in MVC, and enter "1234.5678". The model should store value "1234.56" not "1234.5678", just like you would get if you coded the statement:

d decimal(6,2) = "1234.5678";
Comment 1 Justin Spadea CLA 2012-01-04 16:46:29 EST
Fixed MVCTemplate.java. For all types except timestamp, we now pass in getType() when creating the AS expression for the commit helper, instead of getType().getClassifier().

Timestamp needs to use getClassifier() to match what's expected by InternalTimestampFormatter.unformat()
Comment 2 Justin Spadea CLA 2012-02-20 14:33:35 EST
Verified.