-
Notifications
You must be signed in to change notification settings - Fork 348
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
Incorrect SQL generated #62
Labels
Comments
The fix for this issue is also available. Please let me know if it works with |
Confirming that the fix works in 0.1.4-SNAPSHOT, thanks. |
I noticed another issue: if a single field is selected, the query is not correct: case class Person(id: Int, name: String, age: Int)
case class Contact(id: Int, personId: Int, phone: String)
val q = quote {
(for {
p <- query[Person] if(p.id == 999)
c <- query[Contact] if(c.personId == p.id)
} yield c.id
).take(10)
}
db.run(q) The generated query is:
The outer select should be c.id, not c. |
fwbrasil
added a commit
that referenced
this issue
Dec 24, 2015
fwbrasil
added a commit
that referenced
this issue
Dec 24, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code:
generates this SQL query:
which contains two errors:
The text was updated successfully, but these errors were encountered: