http://jira.nhibernate.org/browse/NH-1098

 

-

Wolfgang

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Roger Kratz
Sent: Freitag, 19. Dezember 2008 16:46
To: [email protected]
Subject: [nhusers] exists(..) when filter are used (HQL)

 

Hi

 

There seems to be some problem with the following hql query...

[

from Foo f

where f.Aaa=:aaa

and exists(from Bar b where [.])

]

.if filter(s) are declared for Bar.  The parameters (=resulting @p0, @p1)
are messed up. One parameter gets another's parameter value. 

(Eg, it seems that @p0 always will have the value set from the filter. In
the generated sql for above, @p0 will replace :aaa -> Error!)

 

A workaround that works in this case is to set the values by position
instead. 

 

Just wanted to check if this is a known issue? If not, I'll commit a test to
the JIRa for this.

 

/Roger



 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to