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

WITH query with one column #541

Closed
msiedlarek opened this Issue Nov 4, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@msiedlarek
Contributor

msiedlarek commented Nov 4, 2013

Using with() and withRecursive() to get only one column results in syntax error as list of one column is serialised by SQLOps without wrapping parentheses.

For example:

query.withRecursive(alias, new Path[] {table.field}).as(...) 
// explicit array is necessary to avoid Expression-Path ambiguity,
// which I believe is an issue on its own

produces invalid SQL:

WITH RECURSIVE alias field AS ...

It should be

WITH RECURSIVE alias (field) AS ...
@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 17, 2013

Member

Released in 3.3.0.BETA1

Member

timowest commented Nov 17, 2013

Released in 3.3.0.BETA1

@timowest timowest closed this Nov 17, 2013

@timowest timowest added this to the 3.3.0 milestone Apr 13, 2014

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