cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Tkachova (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1139) EJBQL condition translation - must track the type of condition
Date Thu, 12 Feb 2009 11:11:47 GMT

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

Olga Tkachova updated CAY-1139:
-------------------------------

    Attachment: ErrEJBQLIsNullTest2.txt

> 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.0
>
>         Attachments: ErrEJBQLIsNullTest.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.


Mime
View raw message