{"action":"closed","number":631,"pull_request":{"url":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/631","id":53130803,"html_url":"https://github.com/MyCATApache/Mycat-Server/pull/631","diff_url":"https://github.com/MyCATApache/Mycat-Server/pull/631.diff","patch_url":"https://github.com/MyCATApache/Mycat-Server/pull/631.patch","issue_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues/631","number":631,"state":"closed","locked":false,"title":"select返回条数少于limit时报错","user":{"login":"tommyhi","id":13816149,"avatar_url":"https://avatars.githubusercontent.com/u/13816149?v=3","gravatar_id":"","url":"https://api.github.com/users/tommyhi","html_url":"https://github.com/tommyhi","followers_url":"https://api.github.com/users/tommyhi/followers","following_url":"https://api.github.com/users/tommyhi/following{/other_user}","gists_url":"https://api.github.com/users/tommyhi/gists{/gist_id}","starred_url":"https://api.github.com/users/tommyhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommyhi/subscriptions","organizations_url":"https://api.github.com/users/tommyhi/orgs","repos_url":"https://api.github.com/users/tommyhi/repos","events_url":"https://api.github.com/users/tommyhi/events{/privacy}","received_events_url":"https://api.github.com/users/tommyhi/received_events","type":"User","site_admin":false},"body":"[问题原因]select返回条数少于limit时，end=limit则大于返回条数，则for循环取数据报错\r\n[问题修改]end不能大于results.size()，比较end与results.size()","created_at":"2015-12-09T15:10:35Z","updated_at":"2015-12-10T01:54:15Z","closed_at":"2015-12-10T01:54:15Z","merged_at":"2015-12-10T01:54:15Z","merge_commit_sha":"1e33d0fd41d394805881ef53320dbffe46e2649f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/631/commits","review_comments_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/631/comments","review_comment_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues/631/comments","statuses_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/statuses/5dd2f1b076bf1553166a1345160536d8b09f780b","head":{"label":"tommyhi:master","ref":"master","sha":"5dd2f1b076bf1553166a1345160536d8b09f780b","user":{"login":"tommyhi","id":13816149,"avatar_url":"https://avatars.githubusercontent.com/u/13816149?v=3","gravatar_id":"","url":"https://api.github.com/users/tommyhi","html_url":"https://github.com/tommyhi","followers_url":"https://api.github.com/users/tommyhi/followers","following_url":"https://api.github.com/users/tommyhi/following{/other_user}","gists_url":"https://api.github.com/users/tommyhi/gists{/gist_id}","starred_url":"https://api.github.com/users/tommyhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommyhi/subscriptions","organizations_url":"https://api.github.com/users/tommyhi/orgs","repos_url":"https://api.github.com/users/tommyhi/repos","events_url":"https://api.github.com/users/tommyhi/events{/privacy}","received_events_url":"https://api.github.com/users/tommyhi/received_events","type":"User","site_admin":false},"repo":{"id":47697724,"name":"Mycat-Server","full_name":"tommyhi/Mycat-Server","owner":{"login":"tommyhi","id":13816149,"avatar_url":"https://avatars.githubusercontent.com/u/13816149?v=3","gravatar_id":"","url":"https://api.github.com/users/tommyhi","html_url":"https://github.com/tommyhi","followers_url":"https://api.github.com/users/tommyhi/followers","following_url":"https://api.github.com/users/tommyhi/following{/other_user}","gists_url":"https://api.github.com/users/tommyhi/gists{/gist_id}","starred_url":"https://api.github.com/users/tommyhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommyhi/subscriptions","organizations_url":"https://api.github.com/users/tommyhi/orgs","repos_url":"https://api.github.com/users/tommyhi/repos","events_url":"https://api.github.com/users/tommyhi/events{/privacy}","received_events_url":"https://api.github.com/users/tommyhi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tommyhi/Mycat-Server","description":"","fork":true,"url":"https://api.github.com/repos/tommyhi/Mycat-Server","forks_url":"https://api.github.com/repos/tommyhi/Mycat-Server/forks","keys_url":"https://api.github.com/repos/tommyhi/Mycat-Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tommyhi/Mycat-Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tommyhi/Mycat-Server/teams","hooks_url":"https://api.github.com/repos/tommyhi/Mycat-Server/hooks","issue_events_url":"https://api.github.com/repos/tommyhi/Mycat-Server/issues/events{/number}","events_url":"https://api.github.com/repos/tommyhi/Mycat-Server/events","assignees_url":"https://api.github.com/repos/tommyhi/Mycat-Server/assignees{/user}","branches_url":"https://api.github.com/repos/tommyhi/Mycat-Server/branches{/branch}","tags_url":"https://api.github.com/repos/tommyhi/Mycat-Server/tags","blobs_url":"https://api.github.com/repos/tommyhi/Mycat-Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tommyhi/Mycat-Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tommyhi/Mycat-Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/tommyhi/Mycat-Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tommyhi/Mycat-Server/statuses/{sha}","languages_url":"https://api.github.com/repos/tommyhi/Mycat-Server/languages","stargazers_url":"https://api.github.com/repos/tommyhi/Mycat-Server/stargazers","contributors_url":"https://api.github.com/repos/tommyhi/Mycat-Server/contributors","subscribers_url":"https://api.github.com/repos/tommyhi/Mycat-Server/subscribers","subscription_url":"https://api.github.com/repos/tommyhi/Mycat-Server/subscription","commits_url":"https://api.github.com/repos/tommyhi/Mycat-Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/tommyhi/Mycat-Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/tommyhi/Mycat-Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/tommyhi/Mycat-Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/tommyhi/Mycat-Server/contents/{+path}","compare_url":"https://api.github.com/repos/tommyhi/Mycat-Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tommyhi/Mycat-Server/merges","archive_url":"https://api.github.com/repos/tommyhi/Mycat-Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tommyhi/Mycat-Server/downloads","issues_url":"https://api.github.com/repos/tommyhi/Mycat-Server/issues{/number}","pulls_url":"https://api.github.com/repos/tommyhi/Mycat-Server/pulls{/number}","milestones_url":"https://api.github.com/repos/tommyhi/Mycat-Server/milestones{/number}","notifications_url":"https://api.github.com/repos/tommyhi/Mycat-Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tommyhi/Mycat-Server/labels{/name}","releases_url":"https://api.github.com/repos/tommyhi/Mycat-Server/releases{/id}","created_at":"2015-12-09T14:52:50Z","updated_at":"2015-12-09T14:52:52Z","pushed_at":"2015-12-09T15:04:08Z","git_url":"git://github.com/tommyhi/Mycat-Server.git","ssh_url":"git@github.com:tommyhi/Mycat-Server.git","clone_url":"https://github.com/tommyhi/Mycat-Server.git","svn_url":"https://github.com/tommyhi/Mycat-Server","homepage":null,"size":3525,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"MyCATApache:master","ref":"master","sha":"338dbac00076307972a086c054117e4c650be57b","user":{"login":"MyCATApache","id":8221116,"avatar_url":"https://avatars.githubusercontent.com/u/8221116?v=3","gravatar_id":"","url":"https://api.github.com/users/MyCATApache","html_url":"https://github.com/MyCATApache","followers_url":"https://api.github.com/users/MyCATApache/followers","following_url":"https://api.github.com/users/MyCATApache/following{/other_user}","gists_url":"https://api.github.com/users/MyCATApache/gists{/gist_id}","starred_url":"https://api.github.com/users/MyCATApache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyCATApache/subscriptions","organizations_url":"https://api.github.com/users/MyCATApache/orgs","repos_url":"https://api.github.com/users/MyCATApache/repos","events_url":"https://api.github.com/users/MyCATApache/events{/privacy}","received_events_url":"https://api.github.com/users/MyCATApache/received_events","type":"Organization","site_admin":false},"repo":{"id":27519800,"name":"Mycat-Server","full_name":"MyCATApache/Mycat-Server","owner":{"login":"MyCATApache","id":8221116,"avatar_url":"https://avatars.githubusercontent.com/u/8221116?v=3","gravatar_id":"","url":"https://api.github.com/users/MyCATApache","html_url":"https://github.com/MyCATApache","followers_url":"https://api.github.com/users/MyCATApache/followers","following_url":"https://api.github.com/users/MyCATApache/following{/other_user}","gists_url":"https://api.github.com/users/MyCATApache/gists{/gist_id}","starred_url":"https://api.github.com/users/MyCATApache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyCATApache/subscriptions","organizations_url":"https://api.github.com/users/MyCATApache/orgs","repos_url":"https://api.github.com/users/MyCATApache/repos","events_url":"https://api.github.com/users/MyCATApache/events{/privacy}","received_events_url":"https://api.github.com/users/MyCATApache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MyCATApache/Mycat-Server","description":"","fork":false,"url":"https://api.github.com/repos/MyCATApache/Mycat-Server","forks_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/forks","keys_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/teams","hooks_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/hooks","issue_events_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues/events{/number}","events_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/events","assignees_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/assignees{/user}","branches_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/branches{/branch}","tags_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/tags","blobs_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/statuses/{sha}","languages_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/languages","stargazers_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/stargazers","contributors_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/contributors","subscribers_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/subscribers","subscription_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/subscription","commits_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/contents/{+path}","compare_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/merges","archive_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/downloads","issues_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues{/number}","pulls_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls{/number}","milestones_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/milestones{/number}","notifications_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/labels{/name}","releases_url":"https://api.github.com/repos/MyCATApache/Mycat-Server/releases{/id}","created_at":"2014-12-04T02:46:54Z","updated_at":"2015-12-09T08:44:16Z","pushed_at":"2015-12-10T01:54:15Z","git_url":"git://github.com/MyCATApache/Mycat-Server.git","ssh_url":"git@github.com:MyCATApache/Mycat-Server.git","clone_url":"https://github.com/MyCATApache/Mycat-Server.git","svn_url":"https://github.com/MyCATApache/Mycat-Server","homepage":null,"size":10295,"stargazers_count":522,"watchers_count":522,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":475,"mirror_url":null,"open_issues_count":47,"forks":475,"open_issues":47,"watchers":522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/631"},"html":{"href":"https://github.com/MyCATApache/Mycat-Server/pull/631"},"issue":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues/631"},"comments":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/issues/631/comments"},"review_comments":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/631/comments"},"review_comment":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/pulls/631/commits"},"statuses":{"href":"https://api.github.com/repos/MyCATApache/Mycat-Server/statuses/5dd2f1b076bf1553166a1345160536d8b09f780b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mycatmerger","id":10161777,"avatar_url":"https://avatars.githubusercontent.com/u/10161777?v=3","gravatar_id":"","url":"https://api.github.com/users/mycatmerger","html_url":"https://github.com/mycatmerger","followers_url":"https://api.github.com/users/mycatmerger/followers","following_url":"https://api.github.com/users/mycatmerger/following{/other_user}","gists_url":"https://api.github.com/users/mycatmerger/gists{/gist_id}","starred_url":"https://api.github.com/users/mycatmerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mycatmerger/subscriptions","organizations_url":"https://api.github.com/users/mycatmerger/orgs","repos_url":"https://api.github.com/users/mycatmerger/repos","events_url":"https://api.github.com/users/mycatmerger/events{/privacy}","received_events_url":"https://api.github.com/users/mycatmerger/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}