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

order by refers to "wrong" tuple variable #13

Closed
fehrenbach opened this issue Nov 5, 2014 · 0 comments
Closed

order by refers to "wrong" tuple variable #13

fehrenbach opened this issue Nov 5, 2014 · 0 comments

Comments

@fehrenbach
Copy link
Member

query {
 for (v <-- versions)
 orderby (v.id)
   [(id=v.id)]
}

compiles to

select (t1635."id") as "id",
       (t1634."id") as "order_1" -- <-- t1634 is not bound!
from TEST_version as t1635
order by order_1

Not sure what the resulting query is meant to be, but probably s/t1634/t1635/g.
Might or might not be related to #11.

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

No branches or pull requests

2 participants