You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2009/02/12 12:59:45 UTC

[jira] Closed: (CAY-1139) EJBQL condition translation - must track the type of condition

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

Andrus Adamchik closed CAY-1139.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.0)
                   3.0M6

> EJBQL condition translation - must track the type of condition
> --------------------------------------------------------------
>
>                 Key: CAY-1139
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1139
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0M6
>
>         Attachments: ErrEJBQLIsNullTest.txt, ErrEJBQLIsNullTest2.txt, ErrEJBQLIsNullTest2.txt
>
>
> When translating an EJBQL condition we need to keep a stack tracing the type of condition. One place where this is important is EJBQLConditionTranslator.processParameter(), as currently it hardcodes the type to VARCHAR for null parameters:
> context.append(" #bind($").append(boundName).append(" 'VARCHAR')");
> This leads to errors, e.g. a postgresql 8.3 error:
> Tests in error: 
>   testCompareToNull(org.apache.cayenne.access.DataContextEJBQLIsNullTest)
> There may be other places where such info will be useful

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