It's caused by a bug in Cayenne's handling of cached queries. I'm
tracking down the exact source now. You can clearly see that the
original query has a working qualifier whereas the new cached query is
missing it. I'll let you know in a few mins where the problem is...
Gili
Andrus Adamchik wrote:
>
> This most certainly works. You have a problem somewhere else.
>
> Andrus
>
> On Sep 9, 2005, at 3:16 AM, Gili wrote:
>
>> Hi,
>>
>> I've declared a SelectQuery in the modeler. The qualifier is set
>> to "parent = null" where "parent" is a to-one relationship. Anyway,
>> at runtime with logging enabled I can see that "parent is null" is
>> never passed onto the SQL query, as a result I am getting results
>> back where the parent is non-null. I am invoking the query using:
>>
>> context.performQuery("DefaultTheme.getRoot", false);
>>
>> it does not take any parameters. I tried searching the mailing
>> list but found no mention of this. Is my qualifier syntax wrong or is
>> something wrong with the modeler?
>>
>> Thank you,
>> Gili
>> --
>> http://www.desktopbeautifier.com/
>>
>>
>
>
-- http://www.desktopbeautifier.com/
This archive was generated by hypermail 2.0.0 : Fri Sep 09 2005 - 12:14:19 EDT