{"action":"opened","number":371,"pull_request":{"url":"https://api.github.com/repos/dbcli/pgcli/pulls/371","id":46710047,"html_url":"https://github.com/dbcli/pgcli/pull/371","diff_url":"https://github.com/dbcli/pgcli/pull/371.diff","patch_url":"https://github.com/dbcli/pgcli/pull/371.patch","issue_url":"https://api.github.com/repos/dbcli/pgcli/issues/371","number":371,"state":"open","locked":false,"title":"Fix suggestions in compound join clauses","user":{"login":"darikg","id":6875882,"avatar_url":"https://avatars.githubusercontent.com/u/6875882?v=3","gravatar_id":"","url":"https://api.github.com/users/darikg","html_url":"https://github.com/darikg","followers_url":"https://api.github.com/users/darikg/followers","following_url":"https://api.github.com/users/darikg/following{/other_user}","gists_url":"https://api.github.com/users/darikg/gists{/gist_id}","starred_url":"https://api.github.com/users/darikg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darikg/subscriptions","organizations_url":"https://api.github.com/users/darikg/orgs","repos_url":"https://api.github.com/users/darikg/repos","events_url":"https://api.github.com/users/darikg/events{/privacy}","received_events_url":"https://api.github.com/users/darikg/received_events","type":"User","site_admin":false},"body":"Previously, this worked correctly, suggesting columns etc. from `a`\r\n`SELECT * FROM abc a JOIN def d ON a.`\r\n\r\nBut this suggested only keywords:\r\n`SELECT * FROM abc a JOIN def d ON a.id = d.id AND a.`","created_at":"2015-10-03T18:04:42Z","updated_at":"2015-10-03T18:04:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dbcli/pgcli/pulls/371/commits","review_comments_url":"https://api.github.com/repos/dbcli/pgcli/pulls/371/comments","review_comment_url":"https://api.github.com/repos/dbcli/pgcli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbcli/pgcli/issues/371/comments","statuses_url":"https://api.github.com/repos/dbcli/pgcli/statuses/ee0995ceedb44a2b20df10433ae1cd1c204d0b5c","head":{"label":"dbcli:darikg/fix-compound-join-clauses","ref":"darikg/fix-compound-join-clauses","sha":"ee0995ceedb44a2b20df10433ae1cd1c204d0b5c","user":{"login":"dbcli","id":11810727,"avatar_url":"https://avatars.githubusercontent.com/u/11810727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbcli","html_url":"https://github.com/dbcli","followers_url":"https://api.github.com/users/dbcli/followers","following_url":"https://api.github.com/users/dbcli/following{/other_user}","gists_url":"https://api.github.com/users/dbcli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbcli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbcli/subscriptions","organizations_url":"https://api.github.com/users/dbcli/orgs","repos_url":"https://api.github.com/users/dbcli/repos","events_url":"https://api.github.com/users/dbcli/events{/privacy}","received_events_url":"https://api.github.com/users/dbcli/received_events","type":"Organization","site_admin":false},"repo":{"id":25126616,"name":"pgcli","full_name":"dbcli/pgcli","owner":{"login":"dbcli","id":11810727,"avatar_url":"https://avatars.githubusercontent.com/u/11810727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbcli","html_url":"https://github.com/dbcli","followers_url":"https://api.github.com/users/dbcli/followers","following_url":"https://api.github.com/users/dbcli/following{/other_user}","gists_url":"https://api.github.com/users/dbcli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbcli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbcli/subscriptions","organizations_url":"https://api.github.com/users/dbcli/orgs","repos_url":"https://api.github.com/users/dbcli/repos","events_url":"https://api.github.com/users/dbcli/events{/privacy}","received_events_url":"https://api.github.com/users/dbcli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dbcli/pgcli","description":"Postgres CLI with autocompletion and syntax highlighting","fork":false,"url":"https://api.github.com/repos/dbcli/pgcli","forks_url":"https://api.github.com/repos/dbcli/pgcli/forks","keys_url":"https://api.github.com/repos/dbcli/pgcli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbcli/pgcli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbcli/pgcli/teams","hooks_url":"https://api.github.com/repos/dbcli/pgcli/hooks","issue_events_url":"https://api.github.com/repos/dbcli/pgcli/issues/events{/number}","events_url":"https://api.github.com/repos/dbcli/pgcli/events","assignees_url":"https://api.github.com/repos/dbcli/pgcli/assignees{/user}","branches_url":"https://api.github.com/repos/dbcli/pgcli/branches{/branch}","tags_url":"https://api.github.com/repos/dbcli/pgcli/tags","blobs_url":"https://api.github.com/repos/dbcli/pgcli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbcli/pgcli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbcli/pgcli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbcli/pgcli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbcli/pgcli/statuses/{sha}","languages_url":"https://api.github.com/repos/dbcli/pgcli/languages","stargazers_url":"https://api.github.com/repos/dbcli/pgcli/stargazers","contributors_url":"https://api.github.com/repos/dbcli/pgcli/contributors","subscribers_url":"https://api.github.com/repos/dbcli/pgcli/subscribers","subscription_url":"https://api.github.com/repos/dbcli/pgcli/subscription","commits_url":"https://api.github.com/repos/dbcli/pgcli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbcli/pgcli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbcli/pgcli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbcli/pgcli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbcli/pgcli/contents/{+path}","compare_url":"https://api.github.com/repos/dbcli/pgcli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbcli/pgcli/merges","archive_url":"https://api.github.com/repos/dbcli/pgcli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbcli/pgcli/downloads","issues_url":"https://api.github.com/repos/dbcli/pgcli/issues{/number}","pulls_url":"https://api.github.com/repos/dbcli/pgcli/pulls{/number}","milestones_url":"https://api.github.com/repos/dbcli/pgcli/milestones{/number}","notifications_url":"https://api.github.com/repos/dbcli/pgcli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbcli/pgcli/labels{/name}","releases_url":"https://api.github.com/repos/dbcli/pgcli/releases{/id}","created_at":"2014-10-12T17:32:33Z","updated_at":"2015-10-03T12:25:35Z","pushed_at":"2015-10-03T18:04:13Z","git_url":"git://github.com/dbcli/pgcli.git","ssh_url":"git@github.com:dbcli/pgcli.git","clone_url":"https://github.com/dbcli/pgcli.git","svn_url":"https://github.com/dbcli/pgcli","homepage":null,"size":3667,"stargazers_count":3896,"watchers_count":3896,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":136,"mirror_url":null,"open_issues_count":49,"forks":136,"open_issues":49,"watchers":3896,"default_branch":"master"}},"base":{"label":"dbcli:master","ref":"master","sha":"517e20224eb4ac3361a5fda900b7a259e7fdb0ee","user":{"login":"dbcli","id":11810727,"avatar_url":"https://avatars.githubusercontent.com/u/11810727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbcli","html_url":"https://github.com/dbcli","followers_url":"https://api.github.com/users/dbcli/followers","following_url":"https://api.github.com/users/dbcli/following{/other_user}","gists_url":"https://api.github.com/users/dbcli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbcli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbcli/subscriptions","organizations_url":"https://api.github.com/users/dbcli/orgs","repos_url":"https://api.github.com/users/dbcli/repos","events_url":"https://api.github.com/users/dbcli/events{/privacy}","received_events_url":"https://api.github.com/users/dbcli/received_events","type":"Organization","site_admin":false},"repo":{"id":25126616,"name":"pgcli","full_name":"dbcli/pgcli","owner":{"login":"dbcli","id":11810727,"avatar_url":"https://avatars.githubusercontent.com/u/11810727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbcli","html_url":"https://github.com/dbcli","followers_url":"https://api.github.com/users/dbcli/followers","following_url":"https://api.github.com/users/dbcli/following{/other_user}","gists_url":"https://api.github.com/users/dbcli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbcli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbcli/subscriptions","organizations_url":"https://api.github.com/users/dbcli/orgs","repos_url":"https://api.github.com/users/dbcli/repos","events_url":"https://api.github.com/users/dbcli/events{/privacy}","received_events_url":"https://api.github.com/users/dbcli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dbcli/pgcli","description":"Postgres CLI with autocompletion and syntax highlighting","fork":false,"url":"https://api.github.com/repos/dbcli/pgcli","forks_url":"https://api.github.com/repos/dbcli/pgcli/forks","keys_url":"https://api.github.com/repos/dbcli/pgcli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbcli/pgcli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbcli/pgcli/teams","hooks_url":"https://api.github.com/repos/dbcli/pgcli/hooks","issue_events_url":"https://api.github.com/repos/dbcli/pgcli/issues/events{/number}","events_url":"https://api.github.com/repos/dbcli/pgcli/events","assignees_url":"https://api.github.com/repos/dbcli/pgcli/assignees{/user}","branches_url":"https://api.github.com/repos/dbcli/pgcli/branches{/branch}","tags_url":"https://api.github.com/repos/dbcli/pgcli/tags","blobs_url":"https://api.github.com/repos/dbcli/pgcli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbcli/pgcli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbcli/pgcli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbcli/pgcli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbcli/pgcli/statuses/{sha}","languages_url":"https://api.github.com/repos/dbcli/pgcli/languages","stargazers_url":"https://api.github.com/repos/dbcli/pgcli/stargazers","contributors_url":"https://api.github.com/repos/dbcli/pgcli/contributors","subscribers_url":"https://api.github.com/repos/dbcli/pgcli/subscribers","subscription_url":"https://api.github.com/repos/dbcli/pgcli/subscription","commits_url":"https://api.github.com/repos/dbcli/pgcli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbcli/pgcli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbcli/pgcli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbcli/pgcli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbcli/pgcli/contents/{+path}","compare_url":"https://api.github.com/repos/dbcli/pgcli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbcli/pgcli/merges","archive_url":"https://api.github.com/repos/dbcli/pgcli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbcli/pgcli/downloads","issues_url":"https://api.github.com/repos/dbcli/pgcli/issues{/number}","pulls_url":"https://api.github.com/repos/dbcli/pgcli/pulls{/number}","milestones_url":"https://api.github.com/repos/dbcli/pgcli/milestones{/number}","notifications_url":"https://api.github.com/repos/dbcli/pgcli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbcli/pgcli/labels{/name}","releases_url":"https://api.github.com/repos/dbcli/pgcli/releases{/id}","created_at":"2014-10-12T17:32:33Z","updated_at":"2015-10-03T12:25:35Z","pushed_at":"2015-10-03T18:04:13Z","git_url":"git://github.com/dbcli/pgcli.git","ssh_url":"git@github.com:dbcli/pgcli.git","clone_url":"https://github.com/dbcli/pgcli.git","svn_url":"https://github.com/dbcli/pgcli","homepage":null,"size":3667,"stargazers_count":3896,"watchers_count":3896,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":136,"mirror_url":null,"open_issues_count":49,"forks":136,"open_issues":49,"watchers":3896,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dbcli/pgcli/pulls/371"},"html":{"href":"https://github.com/dbcli/pgcli/pull/371"},"issue":{"href":"https://api.github.com/repos/dbcli/pgcli/issues/371"},"comments":{"href":"https://api.github.com/repos/dbcli/pgcli/issues/371/comments"},"review_comments":{"href":"https://api.github.com/repos/dbcli/pgcli/pulls/371/comments"},"review_comment":{"href":"https://api.github.com/repos/dbcli/pgcli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbcli/pgcli/pulls/371/commits"},"statuses":{"href":"https://api.github.com/repos/dbcli/pgcli/statuses/ee0995ceedb44a2b20df10433ae1cd1c204d0b5c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":7,"changed_files":2}}