These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: subquery and parameterized filter bug,parameter values mixed
PostPosted: Fri Oct 07, 2005 4:09 pm 
Newbie

Joined: Tue Apr 13, 2004 4:27 pm
Posts: 9
We are having a problem with using subqueries on persistent objects, to which a parametrized filter is applied. We are observing a phenomena where values from the filter and values from the query are switched, so that I have a filter value A, and parameter value B, but in the actual SQL (observed w/ P6Spy) the value or the filter passed is B, and the query parameter is A.

In our scenario where the main query and the subquery are executed against the same table (and therefore the same persistent object type), which uses the filter (and this is the desired behavior), but the parameter and filter values are switched (binded in random order as specified above), in the resulting SQL. This is clearly a bug and should be fixed. Could you provide some timeline for when this will be addressed?

I've read JIRA issues HHH-512, and HHH-530 (and commeted on those), but this issue seems to be a bug. The query worked in 2.1, and stopped working when we added a filter to this object.

Also, I've experimeted with changing order of the parameters in where clause, and observed that parameters were binded in different order as well...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.