{"action":"created","comment":{"url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/comments/175312339","pull_request_review_id":104819670,"id":175312339,"diff_hunk":"@@ -62,13 +62,11 @@ func (h *PostgreSQL) tableNames(q queryable) ([]string, error) {\n \tvar tables []string\n \n \tsql := `\n-\t         SELECT pg_namespace.nspname || '.' || pg_class.relname\n-\t\t FROM pg_class\n-\t\t INNER JOIN pg_namespace ON pg_namespace.oid = pg_class.relnamespace\n+\t   SELECT DISTINCT g.table_schema || '.' || pg_class.relname","path":"postgresql.go","position":7,"original_position":7,"commit_id":"d575d7b6184dc942476d99a9e5356c8387ff3e19","original_commit_id":"d575d7b6184dc942476d99a9e5356c8387ff3e19","user":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars2.githubusercontent.com/u/7011819?v=4","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"body":"Changed indentation. Also, is `DISTINCT` necessary here?","created_at":"2018-03-19T00:40:10Z","updated_at":"2018-03-19T00:46:39Z","html_url":"https://github.com/go-testfixtures/testfixtures/pull/22#discussion_r175312339","pull_request_url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/comments/175312339"},"html":{"href":"https://github.com/go-testfixtures/testfixtures/pull/22#discussion_r175312339"},"pull_request":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22","id":175165526,"html_url":"https://github.com/go-testfixtures/testfixtures/pull/22","diff_url":"https://github.com/go-testfixtures/testfixtures/pull/22.diff","patch_url":"https://github.com/go-testfixtures/testfixtures/pull/22.patch","issue_url":"https://api.github.com/repos/go-testfixtures/testfixtures/issues/22","number":22,"state":"open","locked":false,"title":"[postgresql] only query the sequences and tables which were granted","user":{"login":"CikeyPlanet","id":13619421,"avatar_url":"https://avatars1.githubusercontent.com/u/13619421?v=4","gravatar_id":"","url":"https://api.github.com/users/CikeyPlanet","html_url":"https://github.com/CikeyPlanet","followers_url":"https://api.github.com/users/CikeyPlanet/followers","following_url":"https://api.github.com/users/CikeyPlanet/following{/other_user}","gists_url":"https://api.github.com/users/CikeyPlanet/gists{/gist_id}","starred_url":"https://api.github.com/users/CikeyPlanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CikeyPlanet/subscriptions","organizations_url":"https://api.github.com/users/CikeyPlanet/orgs","repos_url":"https://api.github.com/users/CikeyPlanet/repos","events_url":"https://api.github.com/users/CikeyPlanet/events{/privacy}","received_events_url":"https://api.github.com/users/CikeyPlanet/received_events","type":"User","site_admin":false},"body":"current database user can only query the sequences and tables","created_at":"2018-03-15T07:15:38Z","updated_at":"2018-03-19T00:46:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a03b569b57cccc350906ced99bd00b674f638374","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22/commits","review_comments_url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22/comments","review_comment_url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-testfixtures/testfixtures/issues/22/comments","statuses_url":"https://api.github.com/repos/go-testfixtures/testfixtures/statuses/d575d7b6184dc942476d99a9e5356c8387ff3e19","head":{"label":"CikeyPlanet:postgres-grant","ref":"postgres-grant","sha":"d575d7b6184dc942476d99a9e5356c8387ff3e19","user":{"login":"CikeyPlanet","id":13619421,"avatar_url":"https://avatars1.githubusercontent.com/u/13619421?v=4","gravatar_id":"","url":"https://api.github.com/users/CikeyPlanet","html_url":"https://github.com/CikeyPlanet","followers_url":"https://api.github.com/users/CikeyPlanet/followers","following_url":"https://api.github.com/users/CikeyPlanet/following{/other_user}","gists_url":"https://api.github.com/users/CikeyPlanet/gists{/gist_id}","starred_url":"https://api.github.com/users/CikeyPlanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CikeyPlanet/subscriptions","organizations_url":"https://api.github.com/users/CikeyPlanet/orgs","repos_url":"https://api.github.com/users/CikeyPlanet/repos","events_url":"https://api.github.com/users/CikeyPlanet/events{/privacy}","received_events_url":"https://api.github.com/users/CikeyPlanet/received_events","type":"User","site_admin":false},"repo":{"id":125307383,"name":"testfixtures","full_name":"CikeyPlanet/testfixtures","owner":{"login":"CikeyPlanet","id":13619421,"avatar_url":"https://avatars1.githubusercontent.com/u/13619421?v=4","gravatar_id":"","url":"https://api.github.com/users/CikeyPlanet","html_url":"https://github.com/CikeyPlanet","followers_url":"https://api.github.com/users/CikeyPlanet/followers","following_url":"https://api.github.com/users/CikeyPlanet/following{/other_user}","gists_url":"https://api.github.com/users/CikeyPlanet/gists{/gist_id}","starred_url":"https://api.github.com/users/CikeyPlanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CikeyPlanet/subscriptions","organizations_url":"https://api.github.com/users/CikeyPlanet/orgs","repos_url":"https://api.github.com/users/CikeyPlanet/repos","events_url":"https://api.github.com/users/CikeyPlanet/events{/privacy}","received_events_url":"https://api.github.com/users/CikeyPlanet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CikeyPlanet/testfixtures","description":"Rails-like test fixtures for Go. Write tests against a real database.","fork":true,"url":"https://api.github.com/repos/CikeyPlanet/testfixtures","forks_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/forks","keys_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/teams","hooks_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/hooks","issue_events_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/issues/events{/number}","events_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/events","assignees_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/assignees{/user}","branches_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/branches{/branch}","tags_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/tags","blobs_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/git/refs{/sha}","trees_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/statuses/{sha}","languages_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/languages","stargazers_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/stargazers","contributors_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/contributors","subscribers_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/subscribers","subscription_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/subscription","commits_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/commits{/sha}","git_commits_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/git/commits{/sha}","comments_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/comments{/number}","issue_comment_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/issues/comments{/number}","contents_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/contents/{+path}","compare_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/merges","archive_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/downloads","issues_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/issues{/number}","pulls_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/pulls{/number}","milestones_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/milestones{/number}","notifications_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/labels{/name}","releases_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/releases{/id}","deployments_url":"https://api.github.com/repos/CikeyPlanet/testfixtures/deployments","created_at":"2018-03-15T03:29:08Z","updated_at":"2018-03-15T03:29:10Z","pushed_at":"2018-03-15T07:51:53Z","git_url":"git://github.com/CikeyPlanet/testfixtures.git","ssh_url":"git@github.com:CikeyPlanet/testfixtures.git","clone_url":"https://github.com/CikeyPlanet/testfixtures.git","svn_url":"https://github.com/CikeyPlanet/testfixtures","homepage":"https://gopkg.in/testfixtures.v2","size":121,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-testfixtures:master","ref":"master","sha":"bcbc92cfb57c324655100b356038dce42f13e9be","user":{"login":"go-testfixtures","id":17798421,"avatar_url":"https://avatars3.githubusercontent.com/u/17798421?v=4","gravatar_id":"","url":"https://api.github.com/users/go-testfixtures","html_url":"https://github.com/go-testfixtures","followers_url":"https://api.github.com/users/go-testfixtures/followers","following_url":"https://api.github.com/users/go-testfixtures/following{/other_user}","gists_url":"https://api.github.com/users/go-testfixtures/gists{/gist_id}","starred_url":"https://api.github.com/users/go-testfixtures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-testfixtures/subscriptions","organizations_url":"https://api.github.com/users/go-testfixtures/orgs","repos_url":"https://api.github.com/users/go-testfixtures/repos","events_url":"https://api.github.com/users/go-testfixtures/events{/privacy}","received_events_url":"https://api.github.com/users/go-testfixtures/received_events","type":"Organization","site_admin":false},"repo":{"id":55502590,"name":"testfixtures","full_name":"go-testfixtures/testfixtures","owner":{"login":"go-testfixtures","id":17798421,"avatar_url":"https://avatars3.githubusercontent.com/u/17798421?v=4","gravatar_id":"","url":"https://api.github.com/users/go-testfixtures","html_url":"https://github.com/go-testfixtures","followers_url":"https://api.github.com/users/go-testfixtures/followers","following_url":"https://api.github.com/users/go-testfixtures/following{/other_user}","gists_url":"https://api.github.com/users/go-testfixtures/gists{/gist_id}","starred_url":"https://api.github.com/users/go-testfixtures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-testfixtures/subscriptions","organizations_url":"https://api.github.com/users/go-testfixtures/orgs","repos_url":"https://api.github.com/users/go-testfixtures/repos","events_url":"https://api.github.com/users/go-testfixtures/events{/privacy}","received_events_url":"https://api.github.com/users/go-testfixtures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-testfixtures/testfixtures","description":"Rails-like test fixtures for Go. Write tests against a real database.","fork":false,"url":"https://api.github.com/repos/go-testfixtures/testfixtures","forks_url":"https://api.github.com/repos/go-testfixtures/testfixtures/forks","keys_url":"https://api.github.com/repos/go-testfixtures/testfixtures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-testfixtures/testfixtures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-testfixtures/testfixtures/teams","hooks_url":"https://api.github.com/repos/go-testfixtures/testfixtures/hooks","issue_events_url":"https://api.github.com/repos/go-testfixtures/testfixtures/issues/events{/number}","events_url":"https://api.github.com/repos/go-testfixtures/testfixtures/events","assignees_url":"https://api.github.com/repos/go-testfixtures/testfixtures/assignees{/user}","branches_url":"https://api.github.com/repos/go-testfixtures/testfixtures/branches{/branch}","tags_url":"https://api.github.com/repos/go-testfixtures/testfixtures/tags","blobs_url":"https://api.github.com/repos/go-testfixtures/testfixtures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-testfixtures/testfixtures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-testfixtures/testfixtures/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-testfixtures/testfixtures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-testfixtures/testfixtures/statuses/{sha}","languages_url":"https://api.github.com/repos/go-testfixtures/testfixtures/languages","stargazers_url":"https://api.github.com/repos/go-testfixtures/testfixtures/stargazers","contributors_url":"https://api.github.com/repos/go-testfixtures/testfixtures/contributors","subscribers_url":"https://api.github.com/repos/go-testfixtures/testfixtures/subscribers","subscription_url":"https://api.github.com/repos/go-testfixtures/testfixtures/subscription","commits_url":"https://api.github.com/repos/go-testfixtures/testfixtures/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-testfixtures/testfixtures/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-testfixtures/testfixtures/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-testfixtures/testfixtures/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-testfixtures/testfixtures/contents/{+path}","compare_url":"https://api.github.com/repos/go-testfixtures/testfixtures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-testfixtures/testfixtures/merges","archive_url":"https://api.github.com/repos/go-testfixtures/testfixtures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-testfixtures/testfixtures/downloads","issues_url":"https://api.github.com/repos/go-testfixtures/testfixtures/issues{/number}","pulls_url":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls{/number}","milestones_url":"https://api.github.com/repos/go-testfixtures/testfixtures/milestones{/number}","notifications_url":"https://api.github.com/repos/go-testfixtures/testfixtures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-testfixtures/testfixtures/labels{/name}","releases_url":"https://api.github.com/repos/go-testfixtures/testfixtures/releases{/id}","deployments_url":"https://api.github.com/repos/go-testfixtures/testfixtures/deployments","created_at":"2016-04-05T11:33:28Z","updated_at":"2018-03-19T00:11:20Z","pushed_at":"2018-03-15T07:51:54Z","git_url":"git://github.com/go-testfixtures/testfixtures.git","ssh_url":"git@github.com:go-testfixtures/testfixtures.git","clone_url":"https://github.com/go-testfixtures/testfixtures.git","svn_url":"https://github.com/go-testfixtures/testfixtures","homepage":"https://gopkg.in/testfixtures.v2","size":120,"stargazers_count":147,"watchers_count":147,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":11,"open_issues":1,"watchers":147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22"},"html":{"href":"https://github.com/go-testfixtures/testfixtures/pull/22"},"issue":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/issues/22"},"comments":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/go-testfixtures/testfixtures/statuses/d575d7b6184dc942476d99a9e5356c8387ff3e19"}},"author_association":"NONE"}}
{"actor":{"display_login":"andreynering"}}