{"action":"created","issue":{"url":"https://api.github.com/repos/wethersherbs/pineapple/issues/21","repository_url":"https://api.github.com/repos/wethersherbs/pineapple","labels_url":"https://api.github.com/repos/wethersherbs/pineapple/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/wethersherbs/pineapple/issues/21/comments","events_url":"https://api.github.com/repos/wethersherbs/pineapple/issues/21/events","html_url":"https://github.com/wethersherbs/pineapple/issues/21","id":178299227,"number":21,"title":"Stop running setAttribute on non-MySQL connections","user":{"login":"borb","id":7986200,"avatar_url":"https://avatars.githubusercontent.com/u/7986200?v=3","gravatar_id":"","url":"https://api.github.com/users/borb","html_url":"https://github.com/borb","followers_url":"https://api.github.com/users/borb/followers","following_url":"https://api.github.com/users/borb/following{/other_user}","gists_url":"https://api.github.com/users/borb/gists{/gist_id}","starred_url":"https://api.github.com/users/borb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borb/subscriptions","organizations_url":"https://api.github.com/users/borb/orgs","repos_url":"https://api.github.com/users/borb/repos","events_url":"https://api.github.com/users/borb/events{/privacy}","received_events_url":"https://api.github.com/users/borb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wethersherbs/pineapple/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/wethersherbs/pineapple/milestones/2","html_url":"https://github.com/wethersherbs/pineapple/milestones/0.2.0","labels_url":"https://api.github.com/repos/wethersherbs/pineapple/milestones/2/labels","id":2018699,"number":2,"title":"0.2.0","description":null,"creator":{"login":"borb","id":7986200,"avatar_url":"https://avatars.githubusercontent.com/u/7986200?v=3","gravatar_id":"","url":"https://api.github.com/users/borb","html_url":"https://github.com/borb","followers_url":"https://api.github.com/users/borb/followers","following_url":"https://api.github.com/users/borb/following{/other_user}","gists_url":"https://api.github.com/users/borb/gists{/gist_id}","starred_url":"https://api.github.com/users/borb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borb/subscriptions","organizations_url":"https://api.github.com/users/borb/orgs","repos_url":"https://api.github.com/users/borb/repos","events_url":"https://api.github.com/users/borb/events{/privacy}","received_events_url":"https://api.github.com/users/borb/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-09-21T09:57:12Z","updated_at":"2016-09-21T12:51:56Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-21T09:53:11Z","updated_at":"2016-09-21T12:51:56Z","closed_at":"2016-09-21T12:51:56Z","body":"At present, the DBAL driver runs `setAttribute()` for query buffering on the PDO connection handle for any connection. This is wrong and should be restricted to MySQL connections only.\r\n\r\nA DBAL connection object has a `getDatabasePlatform()` method that returns the database details  for the connection. This can be used to determine if the `setAttribute()` is the right thing to be running on the connection handle.\r\n\r\ne.g.\r\n\r\n```php\r\nswitch ($dbalConn->getDatabasePlatform()) {\r\n    case 'MysqlPlatform':\r\n    case 'MySQL57Platform':\r\n        $dbalConn->getWrappedConnection->setAttribute(...);\r\n        break;\r\n}\r\n```\r\n\r\nSee: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/platforms.html"},"comment":{"url":"https://api.github.com/repos/wethersherbs/pineapple/issues/comments/248602770","html_url":"https://github.com/wethersherbs/pineapple/issues/21#issuecomment-248602770","issue_url":"https://api.github.com/repos/wethersherbs/pineapple/issues/21","id":248602770,"user":{"login":"borb","id":7986200,"avatar_url":"https://avatars.githubusercontent.com/u/7986200?v=3","gravatar_id":"","url":"https://api.github.com/users/borb","html_url":"https://github.com/borb","followers_url":"https://api.github.com/users/borb/followers","following_url":"https://api.github.com/users/borb/following{/other_user}","gists_url":"https://api.github.com/users/borb/gists{/gist_id}","starred_url":"https://api.github.com/users/borb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borb/subscriptions","organizations_url":"https://api.github.com/users/borb/orgs","repos_url":"https://api.github.com/users/borb/repos","events_url":"https://api.github.com/users/borb/events{/privacy}","received_events_url":"https://api.github.com/users/borb/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T12:51:56Z","updated_at":"2016-09-21T12:51:56Z","body":"Fixed in branch dev-0.2.0"}}
{"actor":{"display_login":"borb"}}