René's URL Explorer Experiment


Title: Parser mistakes with comments · Issue #156 · phpmyadmin/sql-parser · GitHub

Open Graph Title: Parser mistakes with comments · Issue #156 · phpmyadmin/sql-parser

X Title: Parser mistakes with comments · Issue #156 · phpmyadmin/sql-parser

Description: The parser may not well deal with the comments. Here is an example, as it treat -- as a part of table alias. Give sql as SELECT * FROM ecshop.ecs_order_info -- LIMIT 0, 30 -- process by PhpMyAdmin\SqlParser\Parser object(PhpMyAdmin\SqlPa...

Open Graph Description: The parser may not well deal with the comments. Here is an example, as it treat -- as a part of table alias. Give sql as SELECT * FROM ecshop.ecs_order_info -- LIMIT 0, 30 -- process by PhpMyAdmin\...

X Description: The parser may not well deal with the comments. Here is an example, as it treat -- as a part of table alias. Give sql as SELECT * FROM ecshop.ecs_order_info -- LIMIT 0, 30 -- process by PhpMyAdmin\...

Opengraph URL: https://github.com/phpmyadmin/sql-parser/issues/156

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parser mistakes with comments","articleBody":"The parser may not well deal with the comments.\r\nHere is an example, as it treat `--` as a part of table alias.\r\n\r\nGive sql as \r\n\r\n```sql\r\nSELECT  * FROM ecshop.ecs_order_info \r\n-- LIMIT 0, 30 \r\n--\r\n```\r\n\r\nprocess by PhpMyAdmin\\SqlParser\\Parser \r\n```\r\nobject(PhpMyAdmin\\SqlParser\\Statements\\SelectStatement)#28 (16) {\r\n  [\"expr\"]=>\r\n  array(1) {\r\n    [0]=>\r\n    object(PhpMyAdmin\\SqlParser\\Components\\Expression)#13 (7) {\r\n      [\"database\"]=>\r\n      NULL\r\n      [\"table\"]=>\r\n      NULL\r\n      [\"column\"]=>\r\n      NULL\r\n      [\"expr\"]=>\r\n      string(1) \"*\"\r\n      [\"alias\"]=>\r\n      NULL\r\n      [\"function\"]=>\r\n      NULL\r\n      [\"subquery\"]=>\r\n      NULL\r\n    }\r\n  }\r\n  [\"from\"]=>\r\n  array(1) {\r\n    [0]=>\r\n    object(PhpMyAdmin\\SqlParser\\Components\\Expression)#11 (7) {\r\n      [\"database\"]=>\r\n      string(6) \"ecshop\"\r\n      [\"table\"]=>\r\n      string(14) \"ecs_order_info\"\r\n      [\"column\"]=>\r\n      NULL\r\n      [\"expr\"]=>\r\n      string(23) \"ecshop.ecs_order_info--\"\r\n      [\"alias\"]=>\r\n      NULL\r\n      [\"function\"]=>\r\n      NULL\r\n      [\"subquery\"]=>\r\n      NULL\r\n    }\r\n  }\r\n  [\"partition\"]=>\r\n  NULL\r\n  [\"where\"]=>\r\n  NULL\r\n  [\"group\"]=>\r\n  NULL\r\n  [\"having\"]=>\r\n  NULL\r\n  [\"order\"]=>\r\n  NULL\r\n  [\"limit\"]=>\r\n  object(PhpMyAdmin\\SqlParser\\Components\\Limit)#27 (2) {\r\n    [\"offset\"]=>\r\n    int(0)\r\n    [\"rowCount\"]=>\r\n    int(30)\r\n  }\r\n  [\"procedure\"]=>\r\n  NULL\r\n  [\"into\"]=>\r\n  NULL\r\n  [\"join\"]=>\r\n  NULL\r\n  [\"union\"]=>\r\n  array(0) {\r\n  }\r\n  [\"end_options\"]=>\r\n  NULL\r\n  [\"options\"]=>\r\n  object(PhpMyAdmin\\SqlParser\\Components\\OptionsArray)#30 (1) {\r\n    [\"options\"]=>\r\n    array(0) {\r\n    }\r\n  }\r\n  [\"first\"]=>\r\n  int(0)\r\n  [\"last\"]=>\r\n  int(12)\r\n}\r\n```\r\n\r\nand rebuild after ensuring the limit expression is appended (by check the statement->limit property, and add it if lack), would get\r\n\r\n```sql\r\nSELECT  * FROM ecshop.ecs_order_info-- LIMIT 0, 30 \r\n```","author":{"url":"https://github.com/sinri","@type":"Person","name":"sinri"},"datePublished":"2017-06-07T14:12:54Z","url":"https://github.com/phpmyadmin/sql-parser/issues/156"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:725f1ada-4f1f-2099-87bf-94050e35c073
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9930:1B4D88:335F85:47BC45:6B043C8B
html-safe-nonce0a3448026abf1ce80eae6aaec42534b8a775803ba87e47e9bec7323d8580af73
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTMwOjFCNEQ4ODozMzVGODU6NDdCQzQ1OjZCMDQzQzhCIiwidmlzaXRvcl9pZCI6Ijg5MzE4MDI5ODY4NTA4Mjc0MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb941cb611ab6514e732a65f4b1760eedd88b5ab56dc3a508a381e995c4a5a849
hovercard-subject-tagissue:234223543
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/phpmyadmin/sql-parser/156/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e42eaac6aabcab372295c6971db49c34ec1cbbd884c1b9691b27b4baef6e9cb5/phpmyadmin/sql-parser/issues/156
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e42eaac6aabcab372295c6971db49c34ec1cbbd884c1b9691b27b4baef6e9cb5/phpmyadmin/sql-parser/issues/156
og:image:altThe parser may not well deal with the comments. Here is an example, as it treat -- as a part of table alias. Give sql as SELECT * FROM ecshop.ecs_order_info -- LIMIT 0, 30 -- process by PhpMyAdmin\...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesinri
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
go-importgithub.com/phpmyadmin/sql-parser git https://github.com/phpmyadmin/sql-parser.git
octolytics-dimension-user_id1351977
octolytics-dimension-user_loginphpmyadmin
octolytics-dimension-repository_id36256604
octolytics-dimension-repository_nwophpmyadmin/sql-parser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36256604
octolytics-dimension-repository_network_root_nwophpmyadmin/sql-parser
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/phpmyadmin/sql-parser/issues/156#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpmyadmin%2Fsql-parser%2Fissues%2F156
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpmyadmin%2Fsql-parser%2Fissues%2F156
Sign uphttps://github.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=phpmyadmin%2Fsql-parser
Reloadhttps://github.com/phpmyadmin/sql-parser/issues/156
Reloadhttps://github.com/phpmyadmin/sql-parser/issues/156
Reloadhttps://github.com/phpmyadmin/sql-parser/issues/156
phpmyadminhttps://github.com/phpmyadmin
sql-parserhttps://github.com/phpmyadmin/sql-parser
Codehttps://github.com/phpmyadmin/sql-parser
Issues55 (55)https://github.com/phpmyadmin/sql-parser/issues
Pull requests21 (21)https://github.com/phpmyadmin/sql-parser/pulls
Actionshttps://github.com/phpmyadmin/sql-parser/actions
Security and qualityhttps://github.com/phpmyadmin/sql-parser/security
Insightshttps://github.com/phpmyadmin/sql-parser/insights
https://github.com/phpmyadmin/sql-parser
New issuehttps://github.com/login?return_to=https://github.com/phpmyadmin/sql-parser/issues/156
New issuehttps://github.com/login?return_to=https://github.com/phpmyadmin/sql-parser/issues/156
#291https://github.com/phpmyadmin/sql-parser/pull/291
Parser mistakes with commentshttps://github.com/phpmyadmin/sql-parser/issues/156#top
#291https://github.com/phpmyadmin/sql-parser/pull/291
https://github.com/williamdes
bughttps://github.com/phpmyadmin/sql-parser/issues?q=state%3Aopen%20label%3A%22bug%22
4.7.0https://github.com/phpmyadmin/sql-parser/milestone/10
https://github.com/sinri
sinrihttps://github.com/sinri
on Jun 7, 2017https://github.com/phpmyadmin/sql-parser/issues/156#issue-234223543
nijelhttps://github.com/nijel
bughttps://github.com/phpmyadmin/sql-parser/issues?q=state%3Aopen%20label%3A%22bug%22
on Jun 8, 2017https://github.com/phpmyadmin/sql-parser/issues/156#event-1115443326
nijelhttps://github.com/nijel
on Jun 8, 2017https://github.com/phpmyadmin/sql-parser/issues/156#event-1115467334
nijelhttps://github.com/nijel
completedhttps://github.com/phpmyadmin/sql-parser/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
f4ff382https://github.com/phpmyadmin/sql-parser/commit/f4ff382ca6ad1d24a26ca5c743d91cb18f569ec6
on Jun 8, 2017https://github.com/phpmyadmin/sql-parser/issues/156#event-1115468837
nijelhttps://github.com/nijel
on Jun 8, 2017https://github.com/phpmyadmin/sql-parser/issues/156#event-1115475826
Honor newlines before comments in formatterhttps://github.com/phpmyadmin/sql-parser/commit/7cad6fa657e8dd70704b4163bb09751d98408f9b
7cad6fahttps://github.com/phpmyadmin/sql-parser/commit/7cad6fa657e8dd70704b4163bb09751d98408f9b
https://github.com/sinri
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584513561
https://github.com/williamdes
williamdeshttps://github.com/williamdes
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584513790
@niconoe-https://github.com/niconoe-
https://github.com/sinri
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584516239
https://github.com/sinri
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584516648
williamdeshttps://github.com/williamdes
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#event-3025543366
https://github.com/sinri
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584520690
https://github.com/niconoe-
niconoe-https://github.com/niconoe-
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584535627
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#event-3025726773
Research and debug on phpmyadmin#156https://github.com/sinri/sql-parser/commit/d3d93643f650a147fd96785eb11c165c0a13f93e
phpmyadmin#156https://github.com/phpmyadmin/sql-parser/issues/156
d3d9364https://github.com/sinri/sql-parser/commit/d3d93643f650a147fd96785eb11c165c0a13f93e
Fix phpmyadmin#156https://github.com/sinri/sql-parser/commit/fc328a21eab88449ccecb6909c39dcc7a4c55018
phpmyadmin#156https://github.com/phpmyadmin/sql-parser/issues/156
fc328a2https://github.com/sinri/sql-parser/commit/fc328a21eab88449ccecb6909c39dcc7a4c55018
https://github.com/sinri
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584540570
https://github.com/sinri
sinrihttps://github.com/sinri
on Feb 11, 2020https://github.com/phpmyadmin/sql-parser/issues/156#issuecomment-584576447
7cad6fahttps://github.com/phpmyadmin/sql-parser/commit/7cad6fa657e8dd70704b4163bb09751d98408f9b
williamdeshttps://github.com/williamdes
williamdeshttps://github.com/williamdes
nijelhttps://github.com/nijel
on Mar 20, 2020https://github.com/phpmyadmin/sql-parser/issues/156#event-3150420200
williamdeshttps://github.com/williamdes
4.5.1https://github.com/phpmyadmin/sql-parser/milestone/10
on Mar 20, 2020https://github.com/phpmyadmin/sql-parser/issues/156#event-3150420351
williamdeshttps://github.com/williamdes
on Mar 20, 2020https://github.com/phpmyadmin/sql-parser/issues/156#event-3150444343
Fix phpmyadmin#156 - Parser mistakes with commentshttps://github.com/sinri/sql-parser/commit/8090cb10c2ff7e0d2890ef8cea7800205d0d8407
phpmyadmin#156https://github.com/phpmyadmin/sql-parser/issues/156
https://docs.github.com/articles/closing-issues-via-commit-messages
8090cb1https://github.com/sinri/sql-parser/commit/8090cb10c2ff7e0d2890ef8cea7800205d0d8407
Merge #291 - Fix #156 - Parser mistakes with commentshttps://github.com/phpmyadmin/sql-parser/commit/a2d0b762c937740ad2342e049a892703e468ce6d
#291https://github.com/phpmyadmin/sql-parser/pull/291
#156https://github.com/phpmyadmin/sql-parser/issues/156
https://docs.github.com/articles/closing-issues-via-commit-messages
a2d0b76https://github.com/phpmyadmin/sql-parser/commit/a2d0b762c937740ad2342e049a892703e468ce6d
Add CHANGELOG entry for #156https://github.com/phpmyadmin/sql-parser/commit/614b944d5ba81ec787b3289829aa5102ada644af
#156https://github.com/phpmyadmin/sql-parser/issues/156
https://docs.github.com/articles/closing-issues-via-commit-messages
614b944https://github.com/phpmyadmin/sql-parser/commit/614b944d5ba81ec787b3289829aa5102ada644af
Ref #291 - Fix #156 - Parser mistakes with commentshttps://github.com/phpmyadmin/sql-parser/commit/833fb1e7456727f50a0c7e875305c0b892aa928b
#291https://github.com/phpmyadmin/sql-parser/pull/291
#156https://github.com/phpmyadmin/sql-parser/issues/156
https://docs.github.com/articles/closing-issues-via-commit-messages
833fb1ehttps://github.com/phpmyadmin/sql-parser/commit/833fb1e7456727f50a0c7e875305c0b892aa928b
williamdeshttps://github.com/williamdes
completedhttps://github.com/phpmyadmin/sql-parser/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
8090cb1https://github.com/phpmyadmin/sql-parser/commit/8090cb10c2ff7e0d2890ef8cea7800205d0d8407
on Mar 20, 2020https://github.com/phpmyadmin/sql-parser/issues/156#event-3150533599
Sign up for freehttps://github.com/signup?return_to=https://github.com/phpmyadmin/sql-parser/issues/156
Sign in to commenthttps://github.com/login?return_to=https://github.com/phpmyadmin/sql-parser/issues/156
williamdeshttps://github.com/williamdes
bughttps://github.com/phpmyadmin/sql-parser/issues?q=state%3Aopen%20label%3A%22bug%22
4.7.0https://github.com/phpmyadmin/sql-parser/milestone/10
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.