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

SQL parser dependant on alias declaration order #581

Open
ithinkihaveacat opened this issue Mar 11, 2013 · 0 comments
Open

SQL parser dependant on alias declaration order #581

ithinkihaveacat opened this issue Mar 11, 2013 · 0 comments

Comments

@ithinkihaveacat
Copy link

The order in which table aliases are references in the where clause must match the order in which the aliases are declared. For example:

select a.id 
from aaa as a, bbb as b
where b.id = 7 and a.name = b.name;

returns the error message Cannot read property 'alias' of undefined however the structurally equivalent form (with the match on a.id instead of b.id)

select a.id 
from aaa as a, bbb as b
where a.id = 7 and a.name = b.name;

produces no error.

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

1 participant