Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union from views should have that view mapped type #1342

Closed
ursusursus opened this issue May 20, 2019 · 0 comments · Fixed by #2316
Closed

Union from views should have that view mapped type #1342

ursusursus opened this issue May 20, 2019 · 0 comments · Fixed by #2316

Comments

@ursusursus
Copy link

If I have a various queries from a view; they always have the same type of data

However if I have a join

threadMessages:
SELECT *
FROM some_view
WHERE remoteId=:remoteId AND accountId=:accountId

UNION

SELECT *
FROM some_view
WHERE c_messageRemoteId=:remoteId AND accountId=:accountId;

return type for this is List; and should be List<some_view>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants