db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TORQUE-114) BigDecimal values can cause an Exception "Value TRUNCATED" from MySQL
Date Mon, 30 Jan 2012 18:26:10 GMT

     [ https://issues.apache.org/jira/browse/TORQUE-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Fox resolved TORQUE-114.
-------------------------------

    Resolution: Won't Fix

This is not the responsibility of Torque. Torque does not do validation or sanity check. For
example, you can compare a number column to the String 'a' without Torque complaining.
                
> BigDecimal values can cause an Exception "Value TRUNCATED" from MySQL
> ---------------------------------------------------------------------
>
>                 Key: TORQUE-114
>                 URL: https://issues.apache.org/jira/browse/TORQUE-114
>             Project: Torque
>          Issue Type: Bug
>          Components: Runtime
>    Affects Versions: 3.3
>         Environment: MySQL 4.1
>            Reporter: Thomas Vandahl
>            Assignee: Thomas Vandahl
>            Priority: Minor
>
> This is merely a bookmark for an issue that needs to be discussed
> When saving BigDecimal values, the database can throw an SQLException which basically
says "Value too long, has been truncated" in MySQL. The case happens when a BigDecimal object
has been created from a double value and as such contains a large number of frational digits
(46 in my case) and the database column is declared as DECIMAL(11,2)
> Is it or is it not the responsibility of Torque to handle this case?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message