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

Queries combinations (union, union all, ...) #39

Closed
MageSlayer opened this issue Jan 15, 2012 · 9 comments
Closed

Queries combinations (union, union all, ...) #39

MageSlayer opened this issue Jan 15, 2012 · 9 comments
Labels

Comments

@MageSlayer
Copy link

Hi Chris

It's an issue for UNION, UNION ALL, INTERSECT support.

@aaelony
Copy link

aaelony commented Apr 4, 2012

Might subselect be useful for UNION and UNION ALL queries?

@jiangjianxiao
Copy link

  • support UNION UNION ALL..

@AlexBaranosky
Copy link
Member

I only have MySQL running, and these don't exist in MySQL. I've got some work that I can put on a branch if one of you are interested you can take it and run with it.

@jiangjianxiao
Copy link

thank, i like sqlalchemy, Korma is very flexible, and I hope The Korma there are the SQLAlchemy similar functionality

@AlexBaranosky
Copy link
Member

This is what I came up with https://github.com/korma/Korma/compare/union-support

I couldn't run this query using java.jdbc to confirm it works as desired, since I only have MySQL installed.

Also, ORDER_BY support would need to be added.

Another concern is that the syntax is unfortunately clunky. I don't want the sub-queries to execute so used (-> (select* ...) (where ...))

@AlexBaranosky
Copy link
Member

Can anyone test this code on a version of SQL that supports UNION?
https://github.com/korma/Korma/compare/union-support

@jiangjianxiao
Copy link

i test union-all on postgresql, no problem

@AlexBaranosky
Copy link
Member

I'll push a SNAPSHOT release we can test out a bit before the next beta.

On Tue, Jan 8, 2013 at 10:42 PM, jiangjianxiao notifications@github.comwrote:

i test union-all on postgresql, no problem


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-12033499.

@AlexBaranosky
Copy link
Member

I deployed a korma-0.3.0-beta15-SNAPSHOT to clojars. Please try it out and let me know of anything.

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

No branches or pull requests

4 participants