cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ksenia Khailenko (JIRA)" <>
Subject [jira] Commented: (CAY-1376) Certain EJBQL queries have mismatched table aliases
Date Wed, 27 Jan 2010 15:26:34 GMT


Ksenia Khailenko commented on CAY-1376:

Could you post the full query in the case when you use a flattened relationship? 

The query like 
"SELECT COUNT(ft3), ft3.toFT1 FROM FlattenedTest3 ft3  GROUP BY ft3.toFT1" 
passes successfully on objects from test/resources/dml/access.DataContextEJBQLFlattenedRelationshipsTest.xml

> Certain EJBQL queries have mismatched table aliases
> ---------------------------------------------------
>                 Key: CAY-1376
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0RC2
>            Reporter: Dave Dombrosky
>         Attachments: ejbqlGroupBy.patch
> On some EJBQL queries, the wrong table aliases are being use to refer to columns.  A
similar issue was solved earlier in CAY-1114.  This problem seems to occur when EJBQLTranslationContext.getTableAlias()
is called on relationships that span database schemas.

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

View raw message