Does DO 3.9 support UNION queries? It seems to me that it doesn't. If it does, then is this support for identical types, or the types can be inherited from same superclass?

asked Sep 20 '11 at 09:29

Bogdan0x400's gravatar image

Bogdan0x400
13558

edited Sep 21 '11 at 01:25

Alex%20Ustinov's gravatar image

Alex Ustinov
2484


One Answer:

You are right, there is no way to explicitly execute UNION query.

But at the same time DataObjects 3.9 uses such queries internally: In the case you have some persistent interface DataObjects 3.9 creates corresponding view. This view in turn is built on top of a query that uses UNION statement to gather results from tables of the interface implementors.

answered Sep 21 '11 at 01:22

Alex%20Ustinov's gravatar image

Alex Ustinov
2484

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA