{"action":"opened","number":18095,"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/18095","id":138744098,"html_url":"https://github.com/cockroachdb/cockroach/pull/18095","diff_url":"https://github.com/cockroachdb/cockroach/pull/18095.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/18095.patch","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/18095","number":18095,"state":"open","locked":false,"title":"sql/parser: use %q for parse error","user":{"login":"mjibson","id":41181,"avatar_url":"https://avatars1.githubusercontent.com/u/41181?v=4","gravatar_id":"","url":"https://api.github.com/users/mjibson","html_url":"https://github.com/mjibson","followers_url":"https://api.github.com/users/mjibson/followers","following_url":"https://api.github.com/users/mjibson/following{/other_user}","gists_url":"https://api.github.com/users/mjibson/gists{/gist_id}","starred_url":"https://api.github.com/users/mjibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjibson/subscriptions","organizations_url":"https://api.github.com/users/mjibson/orgs","repos_url":"https://api.github.com/users/mjibson/repos","events_url":"https://api.github.com/users/mjibson/events{/privacy}","received_events_url":"https://api.github.com/users/mjibson/received_events","type":"User","site_admin":false},"body":"This prevents really weird error messages that are rendered on a\r\nterminal when a `\\r` is present. For example:\r\n\r\n```\r\n6' as type int: strconv.ParseInt: parsing \"3\\r6\": invalid syntaxparse \"test1\" as INTEGER: could not parse '3\r\n```\r\n\r\nWhich was supposed to be\r\n\r\n```\r\npq: <omitted>: row 4: parse \"test1\" as INTEGER: could not parse '3\r\n6' as type int: strconv.ParseInt: parsing \"3\\r6\": invalid syntax\r\n```","created_at":"2017-08-31T19:10:40Z","updated_at":"2017-08-31T19:10:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/18095/commits","review_comments_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/18095/comments","review_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/18095/comments","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/7a148d162891a82cadd2be8ce42cea8e9175a51e","head":{"label":"mjibson:parse-datum-q","ref":"parse-datum-q","sha":"7a148d162891a82cadd2be8ce42cea8e9175a51e","user":{"login":"mjibson","id":41181,"avatar_url":"https://avatars1.githubusercontent.com/u/41181?v=4","gravatar_id":"","url":"https://api.github.com/users/mjibson","html_url":"https://github.com/mjibson","followers_url":"https://api.github.com/users/mjibson/followers","following_url":"https://api.github.com/users/mjibson/following{/other_user}","gists_url":"https://api.github.com/users/mjibson/gists{/gist_id}","starred_url":"https://api.github.com/users/mjibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjibson/subscriptions","organizations_url":"https://api.github.com/users/mjibson/orgs","repos_url":"https://api.github.com/users/mjibson/repos","events_url":"https://api.github.com/users/mjibson/events{/privacy}","received_events_url":"https://api.github.com/users/mjibson/received_events","type":"User","site_admin":false},"repo":{"id":47222384,"name":"cockroach","full_name":"mjibson/cockroach","owner":{"login":"mjibson","id":41181,"avatar_url":"https://avatars1.githubusercontent.com/u/41181?v=4","gravatar_id":"","url":"https://api.github.com/users/mjibson","html_url":"https://github.com/mjibson","followers_url":"https://api.github.com/users/mjibson/followers","following_url":"https://api.github.com/users/mjibson/following{/other_user}","gists_url":"https://api.github.com/users/mjibson/gists{/gist_id}","starred_url":"https://api.github.com/users/mjibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjibson/subscriptions","organizations_url":"https://api.github.com/users/mjibson/orgs","repos_url":"https://api.github.com/users/mjibson/repos","events_url":"https://api.github.com/users/mjibson/events{/privacy}","received_events_url":"https://api.github.com/users/mjibson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjibson/cockroach","description":"A Scalable, Geo-Replicated, Transactional Datastore","fork":true,"url":"https://api.github.com/repos/mjibson/cockroach","forks_url":"https://api.github.com/repos/mjibson/cockroach/forks","keys_url":"https://api.github.com/repos/mjibson/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjibson/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjibson/cockroach/teams","hooks_url":"https://api.github.com/repos/mjibson/cockroach/hooks","issue_events_url":"https://api.github.com/repos/mjibson/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/mjibson/cockroach/events","assignees_url":"https://api.github.com/repos/mjibson/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/mjibson/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/mjibson/cockroach/tags","blobs_url":"https://api.github.com/repos/mjibson/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjibson/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjibson/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjibson/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjibson/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/mjibson/cockroach/languages","stargazers_url":"https://api.github.com/repos/mjibson/cockroach/stargazers","contributors_url":"https://api.github.com/repos/mjibson/cockroach/contributors","subscribers_url":"https://api.github.com/repos/mjibson/cockroach/subscribers","subscription_url":"https://api.github.com/repos/mjibson/cockroach/subscription","commits_url":"https://api.github.com/repos/mjibson/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjibson/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjibson/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjibson/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjibson/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/mjibson/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjibson/cockroach/merges","archive_url":"https://api.github.com/repos/mjibson/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjibson/cockroach/downloads","issues_url":"https://api.github.com/repos/mjibson/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/mjibson/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/mjibson/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/mjibson/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjibson/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/mjibson/cockroach/releases{/id}","deployments_url":"https://api.github.com/repos/mjibson/cockroach/deployments","created_at":"2015-12-01T22:50:28Z","updated_at":"2017-05-21T12:13:26Z","pushed_at":"2017-08-31T19:08:57Z","git_url":"git://github.com/mjibson/cockroach.git","ssh_url":"git@github.com:mjibson/cockroach.git","clone_url":"https://github.com/mjibson/cockroach.git","svn_url":"https://github.com/mjibson/cockroach","homepage":null,"size":417123,"stargazers_count":19,"watchers_count":19,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":19,"default_branch":"master"}},"base":{"label":"cockroachdb:master","ref":"master","sha":"d9b67e623c400e8b2135780b234c6031cbd0676f","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars3.githubusercontent.com/u/6748139?v=4","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":16563587,"name":"cockroach","full_name":"cockroachdb/cockroach","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars3.githubusercontent.com/u/6748139?v=4","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/cockroach","description":"CockroachDB - the open source, cloud-native SQL database.","fork":false,"url":"https://api.github.com/repos/cockroachdb/cockroach","forks_url":"https://api.github.com/repos/cockroachdb/cockroach/forks","keys_url":"https://api.github.com/repos/cockroachdb/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/cockroach/teams","hooks_url":"https://api.github.com/repos/cockroachdb/cockroach/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/cockroach/events","assignees_url":"https://api.github.com/repos/cockroachdb/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/cockroach/tags","blobs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/cockroach/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/cockroach/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/cockroach/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/cockroach/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/cockroach/subscription","commits_url":"https://api.github.com/repos/cockroachdb/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/cockroach/merges","archive_url":"https://api.github.com/repos/cockroachdb/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/cockroach/downloads","issues_url":"https://api.github.com/repos/cockroachdb/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/cockroach/releases{/id}","deployments_url":"https://api.github.com/repos/cockroachdb/cockroach/deployments","created_at":"2014-02-06T00:18:47Z","updated_at":"2017-08-31T09:59:53Z","pushed_at":"2017-08-31T19:10:10Z","git_url":"git://github.com/cockroachdb/cockroach.git","ssh_url":"git@github.com:cockroachdb/cockroach.git","clone_url":"https://github.com/cockroachdb/cockroach.git","svn_url":"https://github.com/cockroachdb/cockroach","homepage":"https://www.cockroachlabs.com","size":755175,"stargazers_count":10951,"watchers_count":10951,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1091,"mirror_url":null,"open_issues_count":1066,"forks":1091,"open_issues":1066,"watchers":10951,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/18095"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/18095"},"issue":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/18095"},"comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/18095/comments"},"review_comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/18095/comments"},"review_comment":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/18095/commits"},"statuses":{"href":"https://api.github.com/repos/cockroachdb/cockroach/statuses/7a148d162891a82cadd2be8ce42cea8e9175a51e"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":25,"deletions":23,"changed_files":4}}
{"actor":{"display_login":"mjibson"}}