René's URL Explorer Experiment


Title: Update reserved words list, add more join support by sgress454 · Pull Request #3 · sgress454/node-sql-parser · GitHub

Open Graph Title: Update reserved words list, add more join support by sgress454 · Pull Request #3 · sgress454/node-sql-parser

X Title: Update reserved words list, add more join support by sgress454 · Pull Request #3 · sgress454/node-sql-parser

Description: This PR updates the list of reserved words that cannot be used unquoted as identifiers. The list was generated using a C program that iterates over the full set of keywords in SQLite and attempts to do CREATE TABLE t( INTEGER); for each one, tracking which keywords fail. Many words that were previously in the reservedMap passed this test and have been removed. Removing items from that list prompted a bit of yak shaving: The alias_ident rule has been split into alias_ident_explicit (i.e. using AS) and alias_ident_implicit (not using AS, e.g. SELECT * FROM foo bar WHERE bar.val = 1). A new invalidImplicitAliasMap is added (generated using the same C program) to track which keywords cannot be used as implicit aliases. There's a lot of overlap with reserveredMap, but there are items exclusive to both lists. More joins have been implemented. RIGHT joins were previously incorrectly parsed as aliases because the join_op rule didn't implement them, but now they were broken entirely, so I went ahead and implemented them + other missing joins. Added tests for all joins The alter_table_stmt rule now only supports one table name (which is correct for SQLite), as the previous rule was not compatible with the alias rule updates. That rule used table_ref_list which supports aliases for table names, which caused the parser to interpret things like RENAME as table aliases. Aliases are not valid in ALTER TABLE statements.

Open Graph Description: This PR updates the list of reserved words that cannot be used unquoted as identifiers. The list was generated using a C program that iterates over the full set of keywords in SQLite and attempts t...

X Description: This PR updates the list of reserved words that cannot be used unquoted as identifiers. The list was generated using a C program that iterates over the full set of keywords in SQLite and attempts t...

Opengraph URL: https://github.com/sgress454/node-sql-parser/pull/3

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:07b2c8a0-ae5f-c2c4-433e-70cb188c8b78
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id928A:38B3D7:3E2CB34:50DE249:697D9C5F
html-safe-noncee7416a224d09588e4bfbbbfd5f253c87acb71e8b3abacdb71fb5fb66d4d9cdfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjhBOjM4QjNENzozRTJDQjM0OjUwREUyNDk6Njk3RDlDNUYiLCJ2aXNpdG9yX2lkIjoiODgyMDA2NjQzMTkxMjQ4MzkzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac37cc7a4c702d109a81d0e7c295b735497399edbd90f517855b44f1ead242d592
hovercard-subject-tagpull_request:3062065246
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/sgress454/node-sql-parser/pull/3/files
twitter:imagehttps://avatars.githubusercontent.com/u/553428?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/553428?s=400&v=4
og:image:altThis PR updates the list of reserved words that cannot be used unquoted as identifiers. The list was generated using a C program that iterates over the full set of keywords in SQLite and attempts t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/sgress454/node-sql-parser git https://github.com/sgress454/node-sql-parser.git
octolytics-dimension-user_id553428
octolytics-dimension-user_loginsgress454
octolytics-dimension-repository_id1020491926
octolytics-dimension-repository_nwosgress454/node-sql-parser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id162260782
octolytics-dimension-repository_parent_nwotaozhi8833998/node-sql-parser
octolytics-dimension-repository_network_root_id162260782
octolytics-dimension-repository_network_root_nwotaozhi8833998/node-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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsgress454%2Fnode-sql-parser%2Fpull%2F3%2Ffiles
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%2Fsgress454%2Fnode-sql-parser%2Fpull%2F3%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sgress454%2Fnode-sql-parser
Reloadhttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
Reloadhttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
Reloadhttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
sgress454 https://patch-diff.githubusercontent.com/sgress454
node-sql-parserhttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser
taozhi8833998/node-sql-parserhttps://patch-diff.githubusercontent.com/taozhi8833998/node-sql-parser
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsgress454%2Fnode-sql-parser
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fsgress454%2Fnode-sql-parser
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fsgress454%2Fnode-sql-parser
Code https://patch-diff.githubusercontent.com/sgress454/node-sql-parser
Pull requests 1 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pulls
Actions https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/actions
Projects 0 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/projects
Security 0 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/security
Insights https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pulse
Code https://patch-diff.githubusercontent.com/sgress454/node-sql-parser
Pull requests https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pulls
Actions https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/actions
Projects https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/projects
Security https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/security
Insights https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fsgress454%2Fnode-sql-parser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fsgress454%2Fnode-sql-parser%2Fissues%2Fnew%2Fchoose
sgress454https://patch-diff.githubusercontent.com/sgress454
masterhttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/tree/master
sgress454/35762-update-reserved-words-listhttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/tree/sgress454/35762-update-reserved-words-list
Conversation 0 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3
Commits 4 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/commits
Checks 0 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/checks
Files changed https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
Please reload this pagehttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
Update reserved words list, add more join support https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#top
Show all changes 4 commits https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
94ead6f fix: update escape character for sqlite sgress454 Jul 24, 2025 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/commits/94ead6fc982ab87c390bc0548a1fb878dc82ad78
fceba46 Merge pull request #2 from sgress454/sgress454/fleet-31222-update-esc… sgress454 Dec 1, 2025 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/commits/fceba465f0750a8be9d6f12a67320cde41930203
e4a23b8 update reserved words list, add alias rules sgress454 Dec 2, 2025 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/commits/e4a23b86e0fa6d297961c6bef236b71c47b5a456
61ab23f reorder, update joins sgress454 Dec 2, 2025 https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/commits/61ab23f9c3aff61bf48cb05418ce62ebbf2b159c
Clear filters https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
Please reload this pagehttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
Please reload this pagehttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files
sqlite.pegjs https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
sqlite.spec.js https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-d5910575133d918d7deafa79fda672c356b16afa13a9f47960033cc9e22081a9
pegjs/sqlite.pegjshttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
View file https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/blob/61ab23f9c3aff61bf48cb05418ce62ebbf2b159c/pegjs/sqlite.pegjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-3a7ca05a369efd3432e5c33cc597d74a29f19ce056a8d1baef00ad88a1b968f8
test/sqlite.spec.jshttps://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-d5910575133d918d7deafa79fda672c356b16afa13a9f47960033cc9e22081a9
View file https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/blob/61ab23f9c3aff61bf48cb05418ce62ebbf2b159c/test/sqlite.spec.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-d5910575133d918d7deafa79fda672c356b16afa13a9f47960033cc9e22081a9
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-d5910575133d918d7deafa79fda672c356b16afa13a9f47960033cc9e22081a9
https://patch-diff.githubusercontent.com/sgress454/node-sql-parser/pull/3/files#diff-d5910575133d918d7deafa79fda672c356b16afa13a9f47960033cc9e22081a9
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.