cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Kazimirchyk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1877) In-memory evaluation of expression may fail with UnsupportedOpeartionException depending on order of nodes
Date Fri, 18 Oct 2013 11:22:41 GMT
Dzmitry Kazimirchyk created CAY-1877:
----------------------------------------

             Summary: In-memory evaluation of expression may fail with UnsupportedOpeartionException
depending on order of nodes
                 Key: CAY-1877
                 URL: https://issues.apache.org/jira/browse/CAY-1877
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.2M2
            Reporter: Dzmitry Kazimirchyk


In-memory evaluation of expression fails with UnsupportedOpeartionException depending on order
of corresponding null comparison and value comparison nodes. E.g.

Artist.BIRTH_DATE.gt(date).orExp(Artist.BIRTH_DATE.eq(null)))

will fail if it will encounter null among Session.startDate values, but 

Artist.BIRTH_DATE.eq(null).orExp(Artist.BIRTH_DATE.gt(date)) 

will be evaluated successfully.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message