René's URL Explorer Experiment


Title: Fix parsing INSERT with a SELECT wrapped in brackets by dualfroz · Pull Request #691 · phpmyadmin/sql-parser · GitHub

Open Graph Title: Fix parsing INSERT with a SELECT wrapped in brackets by dualfroz · Pull Request #691 · phpmyadmin/sql-parser

X Title: Fix parsing INSERT with a SELECT wrapped in brackets by dualfroz · Pull Request #691 · phpmyadmin/sql-parser

Description: the INSERT parser expected a keyword right after the column list, so INSERT INTO A (b) (SELECT 1) ended with "Unexpected token." and the select got split off into a second statement. an opening bracket there now goes into $parser->brackets the same way as brackets around a top-level statement, so the select should pick up the closing one itself. added a fixture for it. Fixes #484

Open Graph Description: the INSERT parser expected a keyword right after the column list, so INSERT INTO A (b) (SELECT 1) ended with "Unexpected token." and the select got split off into a second statement. an o...

X Description: the INSERT parser expected a keyword right after the column list, so INSERT INTO A (b) (SELECT 1) ended with "Unexpected token." and the select got split off into a second stateme...

Opengraph URL: https://github.com/phpmyadmin/sql-parser/pull/691

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cf0e26ba-844e-163a-d35f-19ab09473f5c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBCEA:3DD82D:598185:7A00C0:6B04411E
html-safe-nonce8fc782aa83f181ee35d518ccfc99999da44d04998e2b45cff4d96c4e75d15d81
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0VBOjNERDgyRDo1OTgxODU6N0EwMEMwOjZCMDQ0MTFFIiwidmlzaXRvcl9pZCI6IjE5ODEwNDg5NTg3NzAzODM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6e39cf1c1e4cfcebf4149a7420100f9615614ebff5443d4de9da417bbd85649c
hovercard-subject-tagpull_request:5453040285
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/phpmyadmin/sql-parser/pull/691/files
twitter:imagehttps://avatars.githubusercontent.com/u/284081405?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/284081405?s=400&v=4
og:image:altthe INSERT parser expected a keyword right after the column list, so INSERT INTO A (b) (SELECT 1) ended with "Unexpected token." and the select got split off into a second statement. an o...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/phpmyadmin/sql-parser/pull/691/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpmyadmin%2Fsql-parser%2Fpull%2F691%2Ffiles
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%2Fpull%2F691%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=phpmyadmin%2Fsql-parser
Reloadhttps://github.com/phpmyadmin/sql-parser/pull/691/files
Reloadhttps://github.com/phpmyadmin/sql-parser/pull/691/files
Reloadhttps://github.com/phpmyadmin/sql-parser/pull/691/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fphpmyadmin%2Fsql-parser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fphpmyadmin%2Fsql-parser%2Fissues%2Fnew%2Fchoose
dualfrozhttps://github.com/dualfroz
phpmyadmin:masterhttps://github.com/phpmyadmin/sql-parser/tree/master
dualfroz:fix/484-insert-parenthesized-selecthttps://github.com/dualfroz/sql-parser/tree/fix/484-insert-parenthesized-select
Conversation 2 https://github.com/phpmyadmin/sql-parser/pull/691
Commits 2 https://github.com/phpmyadmin/sql-parser/pull/691/commits
Checks 0 https://github.com/phpmyadmin/sql-parser/pull/691/checks
Files changed 14 https://github.com/phpmyadmin/sql-parser/pull/691/files
Fix parsing INSERT with a SELECT wrapped in brackets https://github.com/phpmyadmin/sql-parser/pull/691/files#top
Show all changes 2 commits https://github.com/phpmyadmin/sql-parser/pull/691/files
94d46ac Fix parsing INSERT with a SELECT wrapped in brackets dualfroz Nov 18, 2026 https://github.com/phpmyadmin/sql-parser/pull/691/commits/94d46ac2dff9137dca34eeead40ac00811bc3687
b54b92e Only let SELECT follow the bracket and handle REPLACE too dualfroz Nov 23, 2026 https://github.com/phpmyadmin/sql-parser/pull/691/commits/b54b92e8fba9b32cf54a4dbada2bb33c00bbc9b5
Clear filters https://github.com/phpmyadmin/sql-parser/pull/691/files
Please reload this pagehttps://github.com/phpmyadmin/sql-parser/pull/691/files
Please reload this pagehttps://github.com/phpmyadmin/sql-parser/pull/691/files
InsertStatement.php https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
ReplaceStatement.php https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-21fb70d8c6c4f226e7d3659c257c5f5ba2874abc8b42ec138310500a240c1d1c
InsertStatementTest.php https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-e4b4fae99fb6bc1d2fc1a8f0506757c545bb6ab45f14190decaf2c0131f12be8
ReplaceStatementTest.php https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-3ff6aad862dfc2f51088ec188faa5c996e46603242e9befde577daa0ed71898b
parseInsertSelectWithParenthesis.in https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-2fb455c4750737ece399e56c1c4b125fd15731264b76efae0e8ab5787f659b6e
parseInsertSelectWithParenthesis.out https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-c8b871609ecf00a0564b0dab3e606aa948a9c140a2f53aab5c456137a9742825
parseInsertSelectWithParenthesisErr.in https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-cf64917e0543ff6fb3a41195148047ec1e1dc573f715cb0d859dc9fe215f8a8f
parseInsertSelectWithParenthesisErr.out https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-e0ee610bdea4049b317d52d1be65b82328631a675ba7e4cfb350243bc206ec5c
parseInsertSelectWithParenthesisErr2.in https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-402f2d4a099e3ce1de8e9a3a24d4cc43d8b5d2dc4790ba39f2723b0a65c6ceee
parseInsertSelectWithParenthesisErr2.out https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-dcbd0fd4cef4d456cba2f4289377c808b8bb381f835a33476fd3dd8558ecbf85
parseReplaceSelectWithParenthesis.in https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-afd78a9bf424002d16baab71de4fcd293a660452114949e6f062d07c68e0ed28
parseReplaceSelectWithParenthesis.out https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-e63ad0ac2991977dc8b49b0fec7945fca636f93be3d1a9b5b3a5d32334b6d2ca
parseReplaceSelectWithParenthesisErr.in https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-7ec8bca41f71a3d756dc8d23d585340f2233855d2a8d34e21850cea7ce026e40
parseReplaceSelectWithParenthesisErr.out https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-2f06b4dd57b1a5939f4db77877a374cd25b681780be4276c21cac7303e8381ff
src/Statements/InsertStatement.phphttps://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
View file https://github.com/phpmyadmin/sql-parser/blob/b54b92e8fba9b32cf54a4dbada2bb33c00bbc9b5/src/Statements/InsertStatement.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpmyadmin/sql-parser/pull/691/{{ revealButtonHref }}
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
bardrophttps://github.com/bardrop
Nov 23, 2026https://github.com/phpmyadmin/sql-parser/pull/691/files#r4666185105
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#484https://github.com/phpmyadmin/sql-parser/issues/484
Please reload this pagehttps://github.com/phpmyadmin/sql-parser/pull/691/files
dualfrozhttps://github.com/dualfroz
Nov 23, 2026https://github.com/phpmyadmin/sql-parser/pull/691/files#r4666235175
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpmyadmin/sql-parser/pull/691/files
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-ef4bb7ba1e36f60bde68e34a7d577c8bf5187c4dbb00f723b2ad375c186c5452
src/Statements/ReplaceStatement.phphttps://github.com/phpmyadmin/sql-parser/pull/691/files#diff-21fb70d8c6c4f226e7d3659c257c5f5ba2874abc8b42ec138310500a240c1d1c
View file https://github.com/phpmyadmin/sql-parser/blob/b54b92e8fba9b32cf54a4dbada2bb33c00bbc9b5/src/Statements/ReplaceStatement.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpmyadmin/sql-parser/pull/691/{{ revealButtonHref }}
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-21fb70d8c6c4f226e7d3659c257c5f5ba2874abc8b42ec138310500a240c1d1c
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-21fb70d8c6c4f226e7d3659c257c5f5ba2874abc8b42ec138310500a240c1d1c
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-21fb70d8c6c4f226e7d3659c257c5f5ba2874abc8b42ec138310500a240c1d1c
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-21fb70d8c6c4f226e7d3659c257c5f5ba2874abc8b42ec138310500a240c1d1c
tests/Parser/InsertStatementTest.phphttps://github.com/phpmyadmin/sql-parser/pull/691/files#diff-e4b4fae99fb6bc1d2fc1a8f0506757c545bb6ab45f14190decaf2c0131f12be8
View file https://github.com/phpmyadmin/sql-parser/blob/b54b92e8fba9b32cf54a4dbada2bb33c00bbc9b5/tests/Parser/InsertStatementTest.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpmyadmin/sql-parser/pull/691/{{ revealButtonHref }}
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-e4b4fae99fb6bc1d2fc1a8f0506757c545bb6ab45f14190decaf2c0131f12be8
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-e4b4fae99fb6bc1d2fc1a8f0506757c545bb6ab45f14190decaf2c0131f12be8
tests/Parser/ReplaceStatementTest.phphttps://github.com/phpmyadmin/sql-parser/pull/691/files#diff-3ff6aad862dfc2f51088ec188faa5c996e46603242e9befde577daa0ed71898b
View file https://github.com/phpmyadmin/sql-parser/blob/b54b92e8fba9b32cf54a4dbada2bb33c00bbc9b5/tests/Parser/ReplaceStatementTest.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpmyadmin/sql-parser/pull/691/{{ revealButtonHref }}
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-3ff6aad862dfc2f51088ec188faa5c996e46603242e9befde577daa0ed71898b
https://github.com/phpmyadmin/sql-parser/pull/691/files#diff-3ff6aad862dfc2f51088ec188faa5c996e46603242e9befde577daa0ed71898b
tests/data/parser/parseInsertSelectWithParenthesis.inhttps://github.com/phpmyadmin/sql-parser/pull/691/files#diff-2fb455c4750737ece399e56c1c4b125fd15731264b76efae0e8ab5787f659b6e
View file https://github.com/phpmyadmin/sql-parser/blob/b54b92e8fba9b32cf54a4dbada2bb33c00bbc9b5/tests/data/parser/parseInsertSelectWithParenthesis.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpmyadmin/sql-parser/pull/691/{{ revealButtonHref }}
Please reload this pagehttps://github.com/phpmyadmin/sql-parser/pull/691/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.