{"action":"created","issue":{"url":"https://api.github.com/repos/brianmario/mysql2/issues/672","labels_url":"https://api.github.com/repos/brianmario/mysql2/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/brianmario/mysql2/issues/672/comments","events_url":"https://api.github.com/repos/brianmario/mysql2/issues/672/events","html_url":"https://github.com/brianmario/mysql2/pull/672","id":105297754,"number":672,"title":"Mysql2::Statement#last_id and #affected_rows","user":{"login":"jeremy","id":199,"avatar_url":"https://avatars.githubusercontent.com/u/199?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremy","html_url":"https://github.com/jeremy","followers_url":"https://api.github.com/users/jeremy/followers","following_url":"https://api.github.com/users/jeremy/following{/other_user}","gists_url":"https://api.github.com/users/jeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremy/subscriptions","organizations_url":"https://api.github.com/users/jeremy/orgs","repos_url":"https://api.github.com/users/jeremy/repos","events_url":"https://api.github.com/users/jeremy/events{/privacy}","received_events_url":"https://api.github.com/users/jeremy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/brianmario/mysql2/milestones/12","html_url":"https://github.com/brianmario/mysql2/milestones/0.4.1","labels_url":"https://api.github.com/repos/brianmario/mysql2/milestones/12/labels","id":1235596,"number":12,"title":"0.4.1","description":"","creator":{"login":"sodabrew","id":39406,"avatar_url":"https://avatars.githubusercontent.com/u/39406?v=3","gravatar_id":"","url":"https://api.github.com/users/sodabrew","html_url":"https://github.com/sodabrew","followers_url":"https://api.github.com/users/sodabrew/followers","following_url":"https://api.github.com/users/sodabrew/following{/other_user}","gists_url":"https://api.github.com/users/sodabrew/gists{/gist_id}","starred_url":"https://api.github.com/users/sodabrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodabrew/subscriptions","organizations_url":"https://api.github.com/users/sodabrew/orgs","repos_url":"https://api.github.com/users/sodabrew/repos","events_url":"https://api.github.com/users/sodabrew/events{/privacy}","received_events_url":"https://api.github.com/users/sodabrew/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":1,"state":"open","created_at":"2015-07-31T18:59:16Z","updated_at":"2015-09-09T06:45:16Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-08T04:24:18Z","updated_at":"2015-09-09T14:21:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/brianmario/mysql2/pulls/672","html_url":"https://github.com/brianmario/mysql2/pull/672","diff_url":"https://github.com/brianmario/mysql2/pull/672.diff","patch_url":"https://github.com/brianmario/mysql2/pull/672.patch"},"body":"* `Mysql2::Statement#last_id` for prepared inserts:\r\n```ruby\r\ninsert = client.prepare('insert into t (foo) values (?)')\r\nids = values.map { insert.execute(1); insert.last_id }\r\n```\r\n* `Mysql2::Statement#affected_rows` for prepared inserts, updates, and deletes:\r\n```ruby\r\nupdate = client.prepare('update t set foo=? where id=?')\r\nupdate.execute 1, 1234\r\nupdate.affected_rows == 1\r\n```"},"comment":{"url":"https://api.github.com/repos/brianmario/mysql2/issues/comments/138924828","html_url":"https://github.com/brianmario/mysql2/pull/672#issuecomment-138924828","issue_url":"https://api.github.com/repos/brianmario/mysql2/issues/672","id":138924828,"user":{"login":"sodabrew","id":39406,"avatar_url":"https://avatars.githubusercontent.com/u/39406?v=3","gravatar_id":"","url":"https://api.github.com/users/sodabrew","html_url":"https://github.com/sodabrew","followers_url":"https://api.github.com/users/sodabrew/followers","following_url":"https://api.github.com/users/sodabrew/following{/other_user}","gists_url":"https://api.github.com/users/sodabrew/gists{/gist_id}","starred_url":"https://api.github.com/users/sodabrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodabrew/subscriptions","organizations_url":"https://api.github.com/users/sodabrew/orgs","repos_url":"https://api.github.com/users/sodabrew/repos","events_url":"https://api.github.com/users/sodabrew/events{/privacy}","received_events_url":"https://api.github.com/users/sodabrew/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T14:21:33Z","updated_at":"2015-09-09T14:21:33Z","body":"Ping for rebase :)"}}