You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Patrick Linskey (JIRA)" <ji...@apache.org> on 2007/09/07 21:27:30 UTC

[jira] Created: (OPENJPA-356) DB2 requires CASTs when parameters appear in SELECT clause

DB2 requires CASTs when parameters appear in SELECT clause
----------------------------------------------------------

                 Key: OPENJPA-356
                 URL: https://issues.apache.org/jira/browse/OPENJPA-356
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 1.0.0, 0.9.7, 0.9.6, 0.9.0
         Environment: Kodo JDO
            Reporter: Patrick Linskey
             Fix For: 1.1.0


When executing a query that selects a literal value, OpenJPA converts the literal into a parameter in the SQL SELECT clause. In DB2, such parameters must be CAST to the appropriate type.

Note that this is not reproducible via OpenJPA's JPA bindings, as JPQL does not allow literals in the SELECT clause. However, the OpenJPA query parse trees do allow this syntax, and Kodo's JDO bindings allow such constructs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-356) DB2 requires CASTs when parameters appear in SELECT clause

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

Michael Dick updated OPENJPA-356:
---------------------------------

    Fix Version/s: 1.0.1

> DB2 requires CASTs when parameters appear in SELECT clause
> ----------------------------------------------------------
>
>                 Key: OPENJPA-356
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-356
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 0.9.0, 0.9.6, 0.9.7, 1.0.0
>         Environment: Kodo JDO
>            Reporter: Patrick Linskey
>             Fix For: 1.0.1, 1.1.0
>
>
> When executing a query that selects a literal value, OpenJPA converts the literal into a parameter in the SQL SELECT clause. In DB2, such parameters must be CAST to the appropriate type.
> Note that this is not reproducible via OpenJPA's JPA bindings, as JPQL does not allow literals in the SELECT clause. However, the OpenJPA query parse trees do allow this syntax, and Kodo's JDO bindings allow such constructs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-356) DB2 requires CASTs when parameters appear in SELECT clause

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

Patrick Linskey resolved OPENJPA-356.
-------------------------------------

    Resolution: Fixed

> DB2 requires CASTs when parameters appear in SELECT clause
> ----------------------------------------------------------
>
>                 Key: OPENJPA-356
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-356
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 0.9.0, 0.9.6, 0.9.7, 1.0.0
>         Environment: Kodo JDO
>            Reporter: Patrick Linskey
>             Fix For: 1.1.0
>
>
> When executing a query that selects a literal value, OpenJPA converts the literal into a parameter in the SQL SELECT clause. In DB2, such parameters must be CAST to the appropriate type.
> Note that this is not reproducible via OpenJPA's JPA bindings, as JPQL does not allow literals in the SELECT clause. However, the OpenJPA query parse trees do allow this syntax, and Kodo's JDO bindings allow such constructs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.