{"action":"closed","number":642,"pull_request":{"url":"https://api.github.com/repos/brianmario/mysql2/pulls/642","id":39898097,"html_url":"https://github.com/brianmario/mysql2/pull/642","diff_url":"https://github.com/brianmario/mysql2/pull/642.diff","patch_url":"https://github.com/brianmario/mysql2/pull/642.patch","issue_url":"https://api.github.com/repos/brianmario/mysql2/issues/642","number":642,"state":"closed","locked":false,"title":"Fix encoding if Mysql2#escape was nothing escaped","user":{"login":"takatoshiono","id":10000,"avatar_url":"https://avatars.githubusercontent.com/u/10000?v=3","gravatar_id":"","url":"https://api.github.com/users/takatoshiono","html_url":"https://github.com/takatoshiono","followers_url":"https://api.github.com/users/takatoshiono/followers","following_url":"https://api.github.com/users/takatoshiono/following{/other_user}","gists_url":"https://api.github.com/users/takatoshiono/gists{/gist_id}","starred_url":"https://api.github.com/users/takatoshiono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takatoshiono/subscriptions","organizations_url":"https://api.github.com/users/takatoshiono/orgs","repos_url":"https://api.github.com/users/takatoshiono/repos","events_url":"https://api.github.com/users/takatoshiono/events{/privacy}","received_events_url":"https://api.github.com/users/takatoshiono/received_events","type":"User","site_admin":false},"body":"If `Encoding.default_internal` and the mysql encoding is different, `Encoding::CompatibilityError` is raised when concatenating a escaped string and a not escaped string. Because of `Mysql2#escape` returns a different encoding according to the string is escaped or not.\r\n\r\nThis pull request changes this. `Mysql2#escape` returns the same encoding regardless of whether it has been escaped.\r\n","created_at":"2015-07-14T09:39:07Z","updated_at":"2015-07-14T15:36:24Z","closed_at":"2015-07-14T15:36:24Z","merged_at":"2015-07-14T15:36:24Z","merge_commit_sha":"8a683372daadf7d89317809e1d330f7b0df77cd2","assignee":null,"milestone":{"url":"https://api.github.com/repos/brianmario/mysql2/milestones/9","html_url":"https://github.com/brianmario/mysql2/milestones/0.3.19","labels_url":"https://api.github.com/repos/brianmario/mysql2/milestones/9/labels","id":1204455,"number":9,"title":"0.3.19","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":1,"closed_issues":1,"state":"open","created_at":"2015-07-13T04:19:12Z","updated_at":"2015-07-14T15:36:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/brianmario/mysql2/pulls/642/commits","review_comments_url":"https://api.github.com/repos/brianmario/mysql2/pulls/642/comments","review_comment_url":"https://api.github.com/repos/brianmario/mysql2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brianmario/mysql2/issues/642/comments","statuses_url":"https://api.github.com/repos/brianmario/mysql2/statuses/088c0fee00bb9edff073405f21aa7d3115bdb06f","head":{"label":"takatoshiono:escape-default-internal-enc","ref":"escape-default-internal-enc","sha":"088c0fee00bb9edff073405f21aa7d3115bdb06f","user":{"login":"takatoshiono","id":10000,"avatar_url":"https://avatars.githubusercontent.com/u/10000?v=3","gravatar_id":"","url":"https://api.github.com/users/takatoshiono","html_url":"https://github.com/takatoshiono","followers_url":"https://api.github.com/users/takatoshiono/followers","following_url":"https://api.github.com/users/takatoshiono/following{/other_user}","gists_url":"https://api.github.com/users/takatoshiono/gists{/gist_id}","starred_url":"https://api.github.com/users/takatoshiono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takatoshiono/subscriptions","organizations_url":"https://api.github.com/users/takatoshiono/orgs","repos_url":"https://api.github.com/users/takatoshiono/repos","events_url":"https://api.github.com/users/takatoshiono/events{/privacy}","received_events_url":"https://api.github.com/users/takatoshiono/received_events","type":"User","site_admin":false},"repo":{"id":39053294,"name":"mysql2","full_name":"takatoshiono/mysql2","owner":{"login":"takatoshiono","id":10000,"avatar_url":"https://avatars.githubusercontent.com/u/10000?v=3","gravatar_id":"","url":"https://api.github.com/users/takatoshiono","html_url":"https://github.com/takatoshiono","followers_url":"https://api.github.com/users/takatoshiono/followers","following_url":"https://api.github.com/users/takatoshiono/following{/other_user}","gists_url":"https://api.github.com/users/takatoshiono/gists{/gist_id}","starred_url":"https://api.github.com/users/takatoshiono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takatoshiono/subscriptions","organizations_url":"https://api.github.com/users/takatoshiono/orgs","repos_url":"https://api.github.com/users/takatoshiono/repos","events_url":"https://api.github.com/users/takatoshiono/events{/privacy}","received_events_url":"https://api.github.com/users/takatoshiono/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takatoshiono/mysql2","description":"A modern, simple and very fast Mysql library for Ruby - binding to libmysql","fork":true,"url":"https://api.github.com/repos/takatoshiono/mysql2","forks_url":"https://api.github.com/repos/takatoshiono/mysql2/forks","keys_url":"https://api.github.com/repos/takatoshiono/mysql2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takatoshiono/mysql2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takatoshiono/mysql2/teams","hooks_url":"https://api.github.com/repos/takatoshiono/mysql2/hooks","issue_events_url":"https://api.github.com/repos/takatoshiono/mysql2/issues/events{/number}","events_url":"https://api.github.com/repos/takatoshiono/mysql2/events","assignees_url":"https://api.github.com/repos/takatoshiono/mysql2/assignees{/user}","branches_url":"https://api.github.com/repos/takatoshiono/mysql2/branches{/branch}","tags_url":"https://api.github.com/repos/takatoshiono/mysql2/tags","blobs_url":"https://api.github.com/repos/takatoshiono/mysql2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takatoshiono/mysql2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takatoshiono/mysql2/git/refs{/sha}","trees_url":"https://api.github.com/repos/takatoshiono/mysql2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takatoshiono/mysql2/statuses/{sha}","languages_url":"https://api.github.com/repos/takatoshiono/mysql2/languages","stargazers_url":"https://api.github.com/repos/takatoshiono/mysql2/stargazers","contributors_url":"https://api.github.com/repos/takatoshiono/mysql2/contributors","subscribers_url":"https://api.github.com/repos/takatoshiono/mysql2/subscribers","subscription_url":"https://api.github.com/repos/takatoshiono/mysql2/subscription","commits_url":"https://api.github.com/repos/takatoshiono/mysql2/commits{/sha}","git_commits_url":"https://api.github.com/repos/takatoshiono/mysql2/git/commits{/sha}","comments_url":"https://api.github.com/repos/takatoshiono/mysql2/comments{/number}","issue_comment_url":"https://api.github.com/repos/takatoshiono/mysql2/issues/comments{/number}","contents_url":"https://api.github.com/repos/takatoshiono/mysql2/contents/{+path}","compare_url":"https://api.github.com/repos/takatoshiono/mysql2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takatoshiono/mysql2/merges","archive_url":"https://api.github.com/repos/takatoshiono/mysql2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takatoshiono/mysql2/downloads","issues_url":"https://api.github.com/repos/takatoshiono/mysql2/issues{/number}","pulls_url":"https://api.github.com/repos/takatoshiono/mysql2/pulls{/number}","milestones_url":"https://api.github.com/repos/takatoshiono/mysql2/milestones{/number}","notifications_url":"https://api.github.com/repos/takatoshiono/mysql2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takatoshiono/mysql2/labels{/name}","releases_url":"https://api.github.com/repos/takatoshiono/mysql2/releases{/id}","created_at":"2015-07-14T04:21:45Z","updated_at":"2015-07-14T04:21:46Z","pushed_at":"2015-07-14T10:09:22Z","git_url":"git://github.com/takatoshiono/mysql2.git","ssh_url":"git@github.com:takatoshiono/mysql2.git","clone_url":"https://github.com/takatoshiono/mysql2.git","svn_url":"https://github.com/takatoshiono/mysql2","homepage":"http://github.com/brianmario/mysql2","size":4027,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brianmario:master","ref":"master","sha":"b3cfa21edf503a9513435ee8551271571d22d11d","user":{"login":"brianmario","id":11571,"avatar_url":"https://avatars.githubusercontent.com/u/11571?v=3","gravatar_id":"","url":"https://api.github.com/users/brianmario","html_url":"https://github.com/brianmario","followers_url":"https://api.github.com/users/brianmario/followers","following_url":"https://api.github.com/users/brianmario/following{/other_user}","gists_url":"https://api.github.com/users/brianmario/gists{/gist_id}","starred_url":"https://api.github.com/users/brianmario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianmario/subscriptions","organizations_url":"https://api.github.com/users/brianmario/orgs","repos_url":"https://api.github.com/users/brianmario/repos","events_url":"https://api.github.com/users/brianmario/events{/privacy}","received_events_url":"https://api.github.com/users/brianmario/received_events","type":"User","site_admin":true},"repo":{"id":588600,"name":"mysql2","full_name":"brianmario/mysql2","owner":{"login":"brianmario","id":11571,"avatar_url":"https://avatars.githubusercontent.com/u/11571?v=3","gravatar_id":"","url":"https://api.github.com/users/brianmario","html_url":"https://github.com/brianmario","followers_url":"https://api.github.com/users/brianmario/followers","following_url":"https://api.github.com/users/brianmario/following{/other_user}","gists_url":"https://api.github.com/users/brianmario/gists{/gist_id}","starred_url":"https://api.github.com/users/brianmario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianmario/subscriptions","organizations_url":"https://api.github.com/users/brianmario/orgs","repos_url":"https://api.github.com/users/brianmario/repos","events_url":"https://api.github.com/users/brianmario/events{/privacy}","received_events_url":"https://api.github.com/users/brianmario/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/brianmario/mysql2","description":"A modern, simple and very fast Mysql library for Ruby - binding to libmysql","fork":false,"url":"https://api.github.com/repos/brianmario/mysql2","forks_url":"https://api.github.com/repos/brianmario/mysql2/forks","keys_url":"https://api.github.com/repos/brianmario/mysql2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brianmario/mysql2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brianmario/mysql2/teams","hooks_url":"https://api.github.com/repos/brianmario/mysql2/hooks","issue_events_url":"https://api.github.com/repos/brianmario/mysql2/issues/events{/number}","events_url":"https://api.github.com/repos/brianmario/mysql2/events","assignees_url":"https://api.github.com/repos/brianmario/mysql2/assignees{/user}","branches_url":"https://api.github.com/repos/brianmario/mysql2/branches{/branch}","tags_url":"https://api.github.com/repos/brianmario/mysql2/tags","blobs_url":"https://api.github.com/repos/brianmario/mysql2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brianmario/mysql2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brianmario/mysql2/git/refs{/sha}","trees_url":"https://api.github.com/repos/brianmario/mysql2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brianmario/mysql2/statuses/{sha}","languages_url":"https://api.github.com/repos/brianmario/mysql2/languages","stargazers_url":"https://api.github.com/repos/brianmario/mysql2/stargazers","contributors_url":"https://api.github.com/repos/brianmario/mysql2/contributors","subscribers_url":"https://api.github.com/repos/brianmario/mysql2/subscribers","subscription_url":"https://api.github.com/repos/brianmario/mysql2/subscription","commits_url":"https://api.github.com/repos/brianmario/mysql2/commits{/sha}","git_commits_url":"https://api.github.com/repos/brianmario/mysql2/git/commits{/sha}","comments_url":"https://api.github.com/repos/brianmario/mysql2/comments{/number}","issue_comment_url":"https://api.github.com/repos/brianmario/mysql2/issues/comments{/number}","contents_url":"https://api.github.com/repos/brianmario/mysql2/contents/{+path}","compare_url":"https://api.github.com/repos/brianmario/mysql2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brianmario/mysql2/merges","archive_url":"https://api.github.com/repos/brianmario/mysql2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brianmario/mysql2/downloads","issues_url":"https://api.github.com/repos/brianmario/mysql2/issues{/number}","pulls_url":"https://api.github.com/repos/brianmario/mysql2/pulls{/number}","milestones_url":"https://api.github.com/repos/brianmario/mysql2/milestones{/number}","notifications_url":"https://api.github.com/repos/brianmario/mysql2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brianmario/mysql2/labels{/name}","releases_url":"https://api.github.com/repos/brianmario/mysql2/releases{/id}","created_at":"2010-03-31T15:40:17Z","updated_at":"2015-07-14T07:09:25Z","pushed_at":"2015-07-14T15:36:24Z","git_url":"git://github.com/brianmario/mysql2.git","ssh_url":"git@github.com:brianmario/mysql2.git","clone_url":"https://github.com/brianmario/mysql2.git","svn_url":"https://github.com/brianmario/mysql2","homepage":"http://github.com/brianmario/mysql2","size":4027,"stargazers_count":1306,"watchers_count":1306,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":304,"mirror_url":null,"open_issues_count":31,"forks":304,"open_issues":31,"watchers":1306,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brianmario/mysql2/pulls/642"},"html":{"href":"https://github.com/brianmario/mysql2/pull/642"},"issue":{"href":"https://api.github.com/repos/brianmario/mysql2/issues/642"},"comments":{"href":"https://api.github.com/repos/brianmario/mysql2/issues/642/comments"},"review_comments":{"href":"https://api.github.com/repos/brianmario/mysql2/pulls/642/comments"},"review_comment":{"href":"https://api.github.com/repos/brianmario/mysql2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brianmario/mysql2/pulls/642/commits"},"statuses":{"href":"https://api.github.com/repos/brianmario/mysql2/statuses/088c0fee00bb9edff073405f21aa7d3115bdb06f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":3,"review_comments":0,"commits":2,"additions":18,"deletions":0,"changed_files":2}}