{"action":"created","issue":{"url":"https://api.github.com/repos/pglass/sqlitis/issues/19","repository_url":"https://api.github.com/repos/pglass/sqlitis","labels_url":"https://api.github.com/repos/pglass/sqlitis/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/pglass/sqlitis/issues/19/comments","events_url":"https://api.github.com/repos/pglass/sqlitis/issues/19/events","html_url":"https://github.com/pglass/sqlitis/issues/19","id":349750792,"node_id":"MDU6SXNzdWUzNDk3NTA3OTI=","number":19,"title":"'NoneType' object has no attribute 'Join'","user":{"login":"melv1n","id":448898,"node_id":"MDQ6VXNlcjQ0ODg5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/448898?v=4","gravatar_id":"","url":"https://api.github.com/users/melv1n","html_url":"https://github.com/melv1n","followers_url":"https://api.github.com/users/melv1n/followers","following_url":"https://api.github.com/users/melv1n/following{/other_user}","gists_url":"https://api.github.com/users/melv1n/gists{/gist_id}","starred_url":"https://api.github.com/users/melv1n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melv1n/subscriptions","organizations_url":"https://api.github.com/users/melv1n/orgs","repos_url":"https://api.github.com/users/melv1n/repos","events_url":"https://api.github.com/users/melv1n/events{/privacy}","received_events_url":"https://api.github.com/users/melv1n/received_events","type":"User","site_admin":false},"labels":[{"id":409678995,"node_id":"MDU6TGFiZWw0MDk2Nzg5OTU=","url":"https://api.github.com/repos/pglass/sqlitis/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-11T17:34:07Z","updated_at":"2018-08-13T12:32:13Z","closed_at":null,"author_association":"NONE","body":"I've got a query with multiple joins. The query looks like this in SQL:\r\n\r\n```\r\nSELECT\r\n    user.id,\r\n    task.id,\r\n    user.username,\r\n    task.task_name\r\nFROM user\r\nJOIN user_has_task ON user.id = user_has_task.user_id\r\nJOIN task ON task.id = user_has_task.task_id\r\n```\r\n\r\nI've verified that this query works and is valid. Now when I try to convert it, I'll get:\r\n\r\n```\r\nsqlitis 'select user.id, task.id, user.username, task.task_name from user join user_has_task on user.id = user_has_task.user_id join task on task.id = user_has_task.task_id'\r\n'NoneType' object has no attribute 'Join'\r\n```\r\n\r\nAm I doing something wrong or is it a bug?\r\n"},"comment":{"url":"https://api.github.com/repos/pglass/sqlitis/issues/comments/412502136","html_url":"https://github.com/pglass/sqlitis/issues/19#issuecomment-412502136","issue_url":"https://api.github.com/repos/pglass/sqlitis/issues/19","id":412502136,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjUwMjEzNg==","user":{"login":"melv1n","id":448898,"node_id":"MDQ6VXNlcjQ0ODg5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/448898?v=4","gravatar_id":"","url":"https://api.github.com/users/melv1n","html_url":"https://github.com/melv1n","followers_url":"https://api.github.com/users/melv1n/followers","following_url":"https://api.github.com/users/melv1n/following{/other_user}","gists_url":"https://api.github.com/users/melv1n/gists{/gist_id}","starred_url":"https://api.github.com/users/melv1n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melv1n/subscriptions","organizations_url":"https://api.github.com/users/melv1n/orgs","repos_url":"https://api.github.com/users/melv1n/repos","events_url":"https://api.github.com/users/melv1n/events{/privacy}","received_events_url":"https://api.github.com/users/melv1n/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T12:32:13Z","updated_at":"2018-08-13T12:32:13Z","author_association":"NONE","body":"I think user is a pretty common table name in a lot of schemas. Wouldn't it be more common for most devs to be referring to an identifier instead of a sql keyword (and therefor it shouldn't be interpreted as a keyword by default)? \r\n"}}
{"actor":{"display_login":"melv1n"}}