You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2012/10/16 19:57:02 UTC

[jira] [Created] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Rick Curtis created OPENJPA-2280:
------------------------------------

             Summary: MappingTool ignores column precision / scale for some databases
                 Key: OPENJPA-2280
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
             Project: OpenJPA
          Issue Type: Bug
          Components: tooling
    Affects Versions: 1.2.3, 2.3.0, 2.2.1
            Reporter: Rick Curtis
            Assignee: Rick Curtis


This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis updated OPENJPA-2280:
---------------------------------

    Fix Version/s: 2.3.0
    
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.3.0
>
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477321#comment-13477321 ] 

Rick Curtis commented on OPENJPA-2280:
--------------------------------------

Committed revision 1398979 to trunk. This changed the numeric mapping from DOUBLE to DECIMAL for DB2 and Derby.
                
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.3.0
>
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis resolved OPENJPA-2280.
----------------------------------

    Resolution: Fixed
    
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.3.0
>
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis updated OPENJPA-2280:
---------------------------------

    Assignee:     (was: Rick Curtis)
    
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis updated OPENJPA-2280:
---------------------------------

    Fix Version/s:     (was: 2.3.0)
    
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488155#comment-13488155 ] 

Rick Curtis commented on OPENJPA-2280:
--------------------------------------

After digging into this issue, it is getting to be much more complicated that what I initially thought. Changing DBDictionary.numericTypeName from DOUBLE to DECIMAL did have the intended effect (honoring precision, scale when creating tables), but it also had a number of unintended runtime consequences.

* First, TestTypesafeCriteria.testBigDecimalConversion was failing because we were trying to CAST an INT column (in a SQL statement) up to a BigDecimal compatible column (so we could execute a math function), but it was blowing up because the INT was larger than a DECIMAL(5,0). To get around that problem I set DBDictionary.(requiresCastForComparisons && requiresCastForMathFunctions) to false to avoid generating the cast and the the test would pass.

* Next, org.apache.openjpa.persistence.criteria.TestTypeSafeCondExpression.testArithmFunc3 and org.apache.openjpa.persistence.criteria.TestTypesafeCriteria.testFunctionWithTwoArgument were failing (on DB2 9.5 but not 10.1) and I didn't take the time to dive into these issues.

The net of it is that this isn't a trivial change to get right and at the current point in time, I don't have time to resolve this issue properly. I'm going to back out all of my changes and put it back into the open state. Hopefully someone with some more time will be able to look at this in the near future.
                
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.3.0
>
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (OPENJPA-2280) MappingTool ignores column precision / scale for some databases

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis reopened OPENJPA-2280:
----------------------------------


I found a number of regressions related to this change. I'll update the JIRA with details later.
                
> MappingTool ignores column precision / scale for some databases
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-2280
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2280
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.2.3, 2.3.0, 2.2.1
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.3.0
>
>
> This JIRA is the same issue as reported by OPENJPA-1224.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira