René's URL Explorer Experiment


Title: cross join不能成功转换 · Issue #7 · sqlparser/gsp_demo_java · GitHub

Open Graph Title: cross join不能成功转换 · Issue #7 · sqlparser/gsp_demo_java

X Title: cross join不能成功转换 · Issue #7 · sqlparser/gsp_demo_java

Description: 当cross join关联多个表的时候,不能成功转换。 test case: Select * from table_c as v cross join table_b, table_c 转换后: Select * from table_c as v cross join table_b, table_c 查看源码发现: private boolean hasJoin( TJoinList joins ) { if ( joins == null ) return fa...

Open Graph Description: 当cross join关联多个表的时候,不能成功转换。 test case: Select * from table_c as v cross join table_b, table_c 转换后: Select * from table_c as v cross join table_b, table_c 查看源码发现: private boolean hasJoin( TJoinList ...

X Description: 当cross join关联多个表的时候,不能成功转换。 test case: Select * from table_c as v cross join table_b, table_c 转换后: Select * from table_c as v cross join table_b, table_c 查看源码发现: private boolean hasJoin( TJoinList ...

Opengraph URL: https://github.com/sqlparser/gsp_demo_java/issues/7

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cross join不能成功转换","articleBody":"当cross join关联多个表的时候,不能成功转换。\r\ntest case:\r\nSelect * from table_c as v  cross join table_b, table_c\r\n转换后:\r\nSelect * from table_c as v  cross join table_b, table_c\r\n\r\n\r\n查看源码发现:\r\n````\r\nprivate boolean hasJoin( TJoinList joins )\r\n\t{\r\n\t\tif ( joins == null )\r\n\t\t\treturn false;\r\n\t\tfor ( int i = 0; i \u003c joins.size( ); i++ )\r\n\t\t{\r\n\t\t\tif ( joins.getJoin( i ).getJoinItems( ) != null\r\n\t\t\t\t\t\u0026\u0026 joins.getJoin( i ).getJoinItems( ).size( ) \u003e 0 )\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n````\r\n当cross join关联表的时候, joins.getJoin( i ).getJoinItems( )不为null,并且size大于0直接返回了true,导致没有进入cross join的转换方法中,但是cross join的getJoinItems( )实际上应该为null,因为joins.getJoin(i).getJoinItems().getJoinItem(j).toString()为null,cross join的hasJoin校验应该为false,缺少这一步判断,所以会导致直接不能转换,修改源码为:\r\n````\r\nprivate boolean hasJoin(TJoinList joins) {\r\n        if (joins == null)\r\n            return false;\r\n        for (int i = 0; i \u003c joins.size(); i++) {\r\n            TJoinItemList joinItems = joins.getJoin(i).getJoinItems();\r\n            if (null != joinItems \u0026\u0026 joinItems.size() \u003e 0) {\r\n                for (int j = 0; j \u003c joinItems.size(); j++) {\r\n                    if (null == joinItems.getJoinItem(j).toString()) {\r\n                        return false;\r\n                    }\r\n                }\r\n                return true;\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n````\r\n即可。","author":{"url":"https://github.com/CembZy","@type":"Person","name":"CembZy"},"datePublished":"2020-06-29T07:17:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/7/gsp_demo_java/issues/7"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5b9be6de-68f6-03c1-ecca-f5b7f0e5618e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95A4:42DE3:24F0DDE:2F18D8C:6975EF9D
html-safe-nonce32a54add961f84959cf4649b00c77288ec558d4676b7ec98b0ce1eb7c23a14a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUE0OjQyREUzOjI0RjBEREU6MkYxOEQ4Qzo2OTc1RUY5RCIsInZpc2l0b3JfaWQiOiIzNjgwNTgwODAzMTI2MjI2ODQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac12d5f16a600f4dda5190f0473d7792d72c081e192580370928b6dbd2492741f3
hovercard-subject-tagissue:647177781
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlparser/gsp_demo_java/7/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fcdcdd62eeb4cd5a28d6c92c97a6a80db08e12d7a0a2096c7dc55550953c1b6b/sqlparser/gsp_demo_java/issues/7
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fcdcdd62eeb4cd5a28d6c92c97a6a80db08e12d7a0a2096c7dc55550953c1b6b/sqlparser/gsp_demo_java/issues/7
og:image:alt当cross join关联多个表的时候,不能成功转换。 test case: Select * from table_c as v cross join table_b, table_c 转换后: Select * from table_c as v cross join table_b, table_c 查看源码发现: private boolean hasJoin( TJoinList ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCembZy
hostnamegithub.com
expected-hostnamegithub.com
None2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6
turbo-cache-controlno-preview
go-importgithub.com/sqlparser/gsp_demo_java git https://github.com/sqlparser/gsp_demo_java.git
octolytics-dimension-user_id1305435
octolytics-dimension-user_loginsqlparser
octolytics-dimension-repository_id206196892
octolytics-dimension-repository_nwosqlparser/gsp_demo_java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id206196892
octolytics-dimension-repository_network_root_nwosqlparser/gsp_demo_java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefcca2b8ef702b5f7f91427a6e920fa44446fe312
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues/7#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlparser%2Fgsp_demo_java%2Fissues%2F7
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlparser%2Fgsp_demo_java%2Fissues%2F7
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=sqlparser%2Fgsp_demo_java
Reloadhttps://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues/7
Reloadhttps://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues/7
Reloadhttps://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues/7
sqlparser https://patch-diff.githubusercontent.com/sqlparser
gsp_demo_javahttps://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsqlparser%2Fgsp_demo_java
Fork 77 https://patch-diff.githubusercontent.com/login?return_to=%2Fsqlparser%2Fgsp_demo_java
Star 148 https://patch-diff.githubusercontent.com/login?return_to=%2Fsqlparser%2Fgsp_demo_java
Code https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java
Issues 11 https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues
Pull requests 1 https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/pulls
Actions https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/actions
Projects 0 https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/projects
Security 0 https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/security
Insights https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/pulse
Code https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java
Issues https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues
Pull requests https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/pulls
Actions https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/actions
Projects https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/projects
Security https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/security
Insights https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/sqlparser/gsp_demo_java/issues/7
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/sqlparser/gsp_demo_java/issues/7
cross join不能成功转换https://patch-diff.githubusercontent.com/sqlparser/gsp_demo_java/issues/7#top
https://github.com/CembZy
https://github.com/CembZy
CembZyhttps://github.com/CembZy
on Jun 29, 2020https://github.com/sqlparser/gsp_demo_java/issues/7#issue-647177781
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.