This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, Consider the following entities.
An application has many security tokens, and a security token can have zero or one application. Consider the following query which returns the application for a token:
Which generates the following SQL (for MySQL)
Which results in a MySQL error:
My query looks correct, however, I'm not 100% sure. I'm not sure why the Thanks, Werner |
|
|
It's a bug where the discriminator from the inner query (on RequestSecurityToken) is incorrectly being applied to the outer query as well. We can investigate this if required, but a much easier way to do it is to use a dotted path:
(There is one difference in this query in that it will return the application for which any SecurityToken matches token, not just for which a RequestSecurityToken matches. If that's an issue, I think you can get around it by adding an |
|