ql-io / ql.io

A node.js based declarative, data-retrieval and aggregation gateway for quickly consuming HTTP APIs
http://ql.io
Other
932 stars 112 forks source link

SQL parser produces confusing error message when referenced table unused #582

Open ithinkihaveacat opened 11 years ago

ithinkihaveacat commented 11 years ago

The SQL

select name from aaa, bbb where aaa.id = 7;

produces the confusing error message Cannot read property 'rhs' of undefined. (Because JOIN condition not satisfied?)

hochang commented 11 years ago

Would you please post your error response?

ithinkihaveacat commented 11 years ago

What do you mean by error response? Following the link above gives Cannot read property 'rhs' of undefined, although I just realised that's the Chrome error message, and I get something different in Safari:

qlio1 qlio2