{"action":"opened","number":1372,"pull_request":{"url":"https://api.github.com/repos/alibaba/druid/pulls/1372","id":81407458,"html_url":"https://github.com/alibaba/druid/pull/1372","diff_url":"https://github.com/alibaba/druid/pull/1372.diff","patch_url":"https://github.com/alibaba/druid/pull/1372.patch","issue_url":"https://api.github.com/repos/alibaba/druid/issues/1372","number":1372,"state":"open","locked":false,"title":"group by 带别名时报classcast错（SQL Server）","user":{"login":"magicdoom","id":468657,"avatar_url":"https://avatars.githubusercontent.com/u/468657?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdoom","html_url":"https://github.com/magicdoom","followers_url":"https://api.github.com/users/magicdoom/followers","following_url":"https://api.github.com/users/magicdoom/following{/other_user}","gists_url":"https://api.github.com/users/magicdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdoom/subscriptions","organizations_url":"https://api.github.com/users/magicdoom/orgs","repos_url":"https://api.github.com/users/magicdoom/repos","events_url":"https://api.github.com/users/magicdoom/events{/privacy}","received_events_url":"https://api.github.com/users/magicdoom/received_events","type":"User","site_admin":false},"body":"连接SQL Server，执行分组sql（带别名）报错\r\nSELECT a.workflowid, COUNT(1) FROM workflow_base a GROUP BY a.workflowid\r\n\r\n而GROUP BY后不带别名则可以正确解析\r\nSELECT a.workflowid, COUNT(1) FROM workflow_base a GROUP BY workflowid\r\n\r\njava.lang.ClassCastException: com.alibaba.druid.sql.visitor.SQLASTOutputVisitor cannot be cast to com.alibaba.druid.sql.dialect.sqlserver.visitor.SQLServerASTVisitor\r\n\tat com.alibaba.druid.sql.dialect.sqlserver.ast.SQLServerSelect.accept0(SQLServerSelect.java:87)\r\n\tat com.alibaba.druid.sql.ast.SQLObjectImpl.accept(SQLObjectImpl.java:41)\r\n\tat com.alibaba.druid.sql.visitor.SQLASTOutputVisitor.visit(SQLASTOutputVisitor.java:848)\r\n\tat com.alibaba.druid.sql.ast.statement.SQLSelectStatement.accept0(SQLSelectStatement.java:58)\r\n\tat com.alibaba.druid.sql.ast.SQLObjectImpl.accept(SQLObjectImpl.java:41)\r\n\tat com.alibaba.druid.sql.SQLUtils.toSQLString(SQLUtils.java:80)\r\n\tat com.alibaba.druid.sql.SQLUtils.toSQLString(SQLUtils.java:68)\r\n\tat com.alibaba.druid.sql.ast.SQLStatementImpl.toString(SQLStatementImpl.java:42)","created_at":"2016-08-16T02:53:29Z","updated_at":"2016-08-16T02:53:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alibaba/druid/pulls/1372/commits","review_comments_url":"https://api.github.com/repos/alibaba/druid/pulls/1372/comments","review_comment_url":"https://api.github.com/repos/alibaba/druid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alibaba/druid/issues/1372/comments","statuses_url":"https://api.github.com/repos/alibaba/druid/statuses/b39bdf7515b6d60c44eb5bdd9ef2ccbb9f454ba8","head":{"label":"magicdoom:master","ref":"master","sha":"b39bdf7515b6d60c44eb5bdd9ef2ccbb9f454ba8","user":{"login":"magicdoom","id":468657,"avatar_url":"https://avatars.githubusercontent.com/u/468657?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdoom","html_url":"https://github.com/magicdoom","followers_url":"https://api.github.com/users/magicdoom/followers","following_url":"https://api.github.com/users/magicdoom/following{/other_user}","gists_url":"https://api.github.com/users/magicdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdoom/subscriptions","organizations_url":"https://api.github.com/users/magicdoom/orgs","repos_url":"https://api.github.com/users/magicdoom/repos","events_url":"https://api.github.com/users/magicdoom/events{/privacy}","received_events_url":"https://api.github.com/users/magicdoom/received_events","type":"User","site_admin":false},"repo":{"id":36649680,"name":"druid","full_name":"magicdoom/druid","owner":{"login":"magicdoom","id":468657,"avatar_url":"https://avatars.githubusercontent.com/u/468657?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdoom","html_url":"https://github.com/magicdoom","followers_url":"https://api.github.com/users/magicdoom/followers","following_url":"https://api.github.com/users/magicdoom/following{/other_user}","gists_url":"https://api.github.com/users/magicdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdoom/subscriptions","organizations_url":"https://api.github.com/users/magicdoom/orgs","repos_url":"https://api.github.com/users/magicdoom/repos","events_url":"https://api.github.com/users/magicdoom/events{/privacy}","received_events_url":"https://api.github.com/users/magicdoom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/magicdoom/druid","description":"为监控而生的数据库连接池！","fork":true,"url":"https://api.github.com/repos/magicdoom/druid","forks_url":"https://api.github.com/repos/magicdoom/druid/forks","keys_url":"https://api.github.com/repos/magicdoom/druid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magicdoom/druid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magicdoom/druid/teams","hooks_url":"https://api.github.com/repos/magicdoom/druid/hooks","issue_events_url":"https://api.github.com/repos/magicdoom/druid/issues/events{/number}","events_url":"https://api.github.com/repos/magicdoom/druid/events","assignees_url":"https://api.github.com/repos/magicdoom/druid/assignees{/user}","branches_url":"https://api.github.com/repos/magicdoom/druid/branches{/branch}","tags_url":"https://api.github.com/repos/magicdoom/druid/tags","blobs_url":"https://api.github.com/repos/magicdoom/druid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magicdoom/druid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magicdoom/druid/git/refs{/sha}","trees_url":"https://api.github.com/repos/magicdoom/druid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magicdoom/druid/statuses/{sha}","languages_url":"https://api.github.com/repos/magicdoom/druid/languages","stargazers_url":"https://api.github.com/repos/magicdoom/druid/stargazers","contributors_url":"https://api.github.com/repos/magicdoom/druid/contributors","subscribers_url":"https://api.github.com/repos/magicdoom/druid/subscribers","subscription_url":"https://api.github.com/repos/magicdoom/druid/subscription","commits_url":"https://api.github.com/repos/magicdoom/druid/commits{/sha}","git_commits_url":"https://api.github.com/repos/magicdoom/druid/git/commits{/sha}","comments_url":"https://api.github.com/repos/magicdoom/druid/comments{/number}","issue_comment_url":"https://api.github.com/repos/magicdoom/druid/issues/comments{/number}","contents_url":"https://api.github.com/repos/magicdoom/druid/contents/{+path}","compare_url":"https://api.github.com/repos/magicdoom/druid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magicdoom/druid/merges","archive_url":"https://api.github.com/repos/magicdoom/druid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magicdoom/druid/downloads","issues_url":"https://api.github.com/repos/magicdoom/druid/issues{/number}","pulls_url":"https://api.github.com/repos/magicdoom/druid/pulls{/number}","milestones_url":"https://api.github.com/repos/magicdoom/druid/milestones{/number}","notifications_url":"https://api.github.com/repos/magicdoom/druid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magicdoom/druid/labels{/name}","releases_url":"https://api.github.com/repos/magicdoom/druid/releases{/id}","deployments_url":"https://api.github.com/repos/magicdoom/druid/deployments","created_at":"2015-06-01T09:05:12Z","updated_at":"2016-08-15T14:41:17Z","pushed_at":"2016-08-16T02:46:17Z","git_url":"git://github.com/magicdoom/druid.git","ssh_url":"git@github.com:magicdoom/druid.git","clone_url":"https://github.com/magicdoom/druid.git","svn_url":"https://github.com/magicdoom/druid","homepage":"https://github.com/alibaba/druid/wiki","size":43578,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alibaba:master","ref":"master","sha":"3e3d5904239179bb4806267bf154b83edd64226a","user":{"login":"alibaba","id":1961952,"avatar_url":"https://avatars.githubusercontent.com/u/1961952?v=3","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"repo":{"id":2700159,"name":"druid","full_name":"alibaba/druid","owner":{"login":"alibaba","id":1961952,"avatar_url":"https://avatars.githubusercontent.com/u/1961952?v=3","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alibaba/druid","description":"为监控而生的数据库连接池！","fork":false,"url":"https://api.github.com/repos/alibaba/druid","forks_url":"https://api.github.com/repos/alibaba/druid/forks","keys_url":"https://api.github.com/repos/alibaba/druid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alibaba/druid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alibaba/druid/teams","hooks_url":"https://api.github.com/repos/alibaba/druid/hooks","issue_events_url":"https://api.github.com/repos/alibaba/druid/issues/events{/number}","events_url":"https://api.github.com/repos/alibaba/druid/events","assignees_url":"https://api.github.com/repos/alibaba/druid/assignees{/user}","branches_url":"https://api.github.com/repos/alibaba/druid/branches{/branch}","tags_url":"https://api.github.com/repos/alibaba/druid/tags","blobs_url":"https://api.github.com/repos/alibaba/druid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alibaba/druid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alibaba/druid/git/refs{/sha}","trees_url":"https://api.github.com/repos/alibaba/druid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alibaba/druid/statuses/{sha}","languages_url":"https://api.github.com/repos/alibaba/druid/languages","stargazers_url":"https://api.github.com/repos/alibaba/druid/stargazers","contributors_url":"https://api.github.com/repos/alibaba/druid/contributors","subscribers_url":"https://api.github.com/repos/alibaba/druid/subscribers","subscription_url":"https://api.github.com/repos/alibaba/druid/subscription","commits_url":"https://api.github.com/repos/alibaba/druid/commits{/sha}","git_commits_url":"https://api.github.com/repos/alibaba/druid/git/commits{/sha}","comments_url":"https://api.github.com/repos/alibaba/druid/comments{/number}","issue_comment_url":"https://api.github.com/repos/alibaba/druid/issues/comments{/number}","contents_url":"https://api.github.com/repos/alibaba/druid/contents/{+path}","compare_url":"https://api.github.com/repos/alibaba/druid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alibaba/druid/merges","archive_url":"https://api.github.com/repos/alibaba/druid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alibaba/druid/downloads","issues_url":"https://api.github.com/repos/alibaba/druid/issues{/number}","pulls_url":"https://api.github.com/repos/alibaba/druid/pulls{/number}","milestones_url":"https://api.github.com/repos/alibaba/druid/milestones{/number}","notifications_url":"https://api.github.com/repos/alibaba/druid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alibaba/druid/labels{/name}","releases_url":"https://api.github.com/repos/alibaba/druid/releases{/id}","deployments_url":"https://api.github.com/repos/alibaba/druid/deployments","created_at":"2011-11-03T05:12:51Z","updated_at":"2016-08-16T01:39:12Z","pushed_at":"2016-08-16T02:53:29Z","git_url":"git://github.com/alibaba/druid.git","ssh_url":"git@github.com:alibaba/druid.git","clone_url":"https://github.com/alibaba/druid.git","svn_url":"https://github.com/alibaba/druid","homepage":"https://github.com/alibaba/druid/wiki","size":48576,"stargazers_count":4016,"watchers_count":4016,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2246,"mirror_url":null,"open_issues_count":247,"forks":2246,"open_issues":247,"watchers":4016,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alibaba/druid/pulls/1372"},"html":{"href":"https://github.com/alibaba/druid/pull/1372"},"issue":{"href":"https://api.github.com/repos/alibaba/druid/issues/1372"},"comments":{"href":"https://api.github.com/repos/alibaba/druid/issues/1372/comments"},"review_comments":{"href":"https://api.github.com/repos/alibaba/druid/pulls/1372/comments"},"review_comment":{"href":"https://api.github.com/repos/alibaba/druid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alibaba/druid/pulls/1372/commits"},"statuses":{"href":"https://api.github.com/repos/alibaba/druid/statuses/b39bdf7515b6d60c44eb5bdd9ef2ccbb9f454ba8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":27,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"magicdoom"}}