{"action":"created","issue":{"url":"https://api.github.com/repos/robmorgan/phinx/issues/559","labels_url":"https://api.github.com/repos/robmorgan/phinx/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/robmorgan/phinx/issues/559/comments","events_url":"https://api.github.com/repos/robmorgan/phinx/issues/559/events","html_url":"https://github.com/robmorgan/phinx/pull/559","id":78663325,"number":559,"title":"use PDOStatement::fetchColumn for PostgresAdapter::hasTable","user":{"login":"steffkes","id":325361,"avatar_url":"https://avatars.githubusercontent.com/u/325361?v=3","gravatar_id":"","url":"https://api.github.com/users/steffkes","html_url":"https://github.com/steffkes","followers_url":"https://api.github.com/users/steffkes/followers","following_url":"https://api.github.com/users/steffkes/following{/other_user}","gists_url":"https://api.github.com/users/steffkes/gists{/gist_id}","starred_url":"https://api.github.com/users/steffkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffkes/subscriptions","organizations_url":"https://api.github.com/users/steffkes/orgs","repos_url":"https://api.github.com/users/steffkes/repos","events_url":"https://api.github.com/users/steffkes/events{/privacy}","received_events_url":"https://api.github.com/users/steffkes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-20T19:30:45Z","updated_at":"2015-08-20T19:16:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/robmorgan/phinx/pulls/559","html_url":"https://github.com/robmorgan/phinx/pull/559","diff_url":"https://github.com/robmorgan/phinx/pull/559.diff","patch_url":"https://github.com/robmorgan/phinx/pull/559.patch"},"body":"Trying to use my own connection, i've got `Notice: Undefined offset: 0` because i'm using `PDO::FETCH_ASSOC` which doesn't return numeric indexes for its result.\r\n\r\nSince we're only interested in one column anyway, we could change it to `PDOStatement::fetchColumn` which would work regardless of the underlying connection and its options."},"comment":{"url":"https://api.github.com/repos/robmorgan/phinx/issues/comments/133128773","html_url":"https://github.com/robmorgan/phinx/pull/559#issuecomment-133128773","issue_url":"https://api.github.com/repos/robmorgan/phinx/issues/559","id":133128773,"user":{"login":"steffkes","id":325361,"avatar_url":"https://avatars.githubusercontent.com/u/325361?v=3","gravatar_id":"","url":"https://api.github.com/users/steffkes","html_url":"https://github.com/steffkes","followers_url":"https://api.github.com/users/steffkes/followers","following_url":"https://api.github.com/users/steffkes/following{/other_user}","gists_url":"https://api.github.com/users/steffkes/gists{/gist_id}","starred_url":"https://api.github.com/users/steffkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffkes/subscriptions","organizations_url":"https://api.github.com/users/steffkes/orgs","repos_url":"https://api.github.com/users/steffkes/repos","events_url":"https://api.github.com/users/steffkes/events{/privacy}","received_events_url":"https://api.github.com/users/steffkes/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T19:16:22Z","updated_at":"2015-08-20T19:16:22Z","body":"@rquadling uhm, that's a valid question - i didn't look much at the context just fixed my problem, that's a good idea, will include that one. indeed no need to retrieve all the information :)"}}