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

Syntax error concerning alias for SQLSubQuery with "*" string expression in projection #159

Closed
nyc2 opened this issue May 30, 2012 · 3 comments

Comments

@nyc2
Copy link

@nyc2 nyc2 commented May 30, 2012

Please see https://groups.google.com/forum/#!topic/querydsl/ZrOwj-azzrU for details.

Querydsl:

new SQLSubQuery().from(QTbl1).where(inSubselectTokens(QTbl1.col, tokens, ',')).list();

Generated SQL:

select * from QTbl1 where col1 in (select * as col__1 from QTbl1)

The alias is inappropriate in the subquery. Perhaps this has something to do with the way my method inSubselectTokens works internally, because it uses TemplateExpressionImpl.create(String.class, "*") as projection. However, this had been working until Querydsl 2.6.0.

@nyc2
Copy link
Author

@nyc2 nyc2 commented Jun 2, 2012

This issue is already in commited state. Cannot find a fix in the sources. Is there a workaround I may use in the meanwhile?

@timowest
Copy link
Member

@timowest timowest commented Jun 11, 2012

I missed to link the commit to this ticket. Just build the latest version from Git. It should work.

@timowest
Copy link
Member

@timowest timowest commented Jun 28, 2012

Released in 2.7.0

@timowest timowest closed this Jun 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants