Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364064 - MVC not truncating extra decimals
Summary: MVC not truncating extra decimals
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-17 12:06 EST by Justin Spadea CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.