Title: [BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : GROUPS cannot be used as an identifier anymore (regression via #2460) · Issue #2473 · JSQLParser/JSqlParser · GitHub
Open Graph Title: [BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : GROUPS cannot be used as an identifier anymore (regression via #2460) · Issue #2473 · JSQLParser/JSqlParser
X Title: [BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : GROUPS cannot be used as an identifier anymore (regression via #2460) · Issue #2473 · JSQLParser/JSqlParser
Description: Failing SQL Feature: GROUPS cannot be used as an identifier (column, table, or alias) anymore. The GROUPS keyword was introduced for PostgreSQL GROUPS window frames in d92f407 (#2460) and was placed into the reserved keyword token sectio...
Open Graph Description: Failing SQL Feature: GROUPS cannot be used as an identifier (column, table, or alias) anymore. The GROUPS keyword was introduced for PostgreSQL GROUPS window frames in d92f407 (#2460) and was place...
X Description: Failing SQL Feature: GROUPS cannot be used as an identifier (column, table, or alias) anymore. The GROUPS keyword was introduced for PostgreSQL GROUPS window frames in d92f407 (#2460) and was place...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2473
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : GROUPS cannot be used as an identifier anymore (regression via #2460)","articleBody":"### Failing SQL Feature:\n\n`GROUPS` cannot be used as an identifier (column, table, or alias) anymore.\n\nThe `GROUPS` keyword was introduced for PostgreSQL `GROUPS` window frames in d92f407 (#2460) and was placed into the **reserved** keyword token section of the grammar. However, `GROUPS` is a **non-reserved** keyword in PostgreSQL (see the [key words table](https://www.postgresql.org/docs/current/sql-keywords-appendix.html): `GROUPS` is marked \"non-reserved\"), so it remains a perfectly legal identifier.\n\nAs a result, SQL which parsed fine before #2460 now fails on current master.\n\n### SQL Example:\n\n```sql\nSELECT groups FROM mytable;\nSELECT * FROM groups;\nSELECT a AS groups FROM mytable;\nSELECT a groups FROM mytable;\nCREATE TABLE t (groups INT);\n```\n\nEach statement throws a `JSQLParserException` (e.g. `Encountered unexpected token: \"groups\"`).\n\nVerified on master 406a4d4.\n\nThe grammar already has the right mechanism for such keywords: tokens declared inside the `NonReservedWord()` production are automatically accepted as identifiers via the `MIN_NON_RESERVED_WORD` / `MAX_NON_RESERVED_WORD` range guards (used by `RelObjectName()` and `isAliasAhead()`), and `KeywordsTest` covers every one of them parameterized as identifiers. `GROUPS` just needs to move from the reserved token section into `NonReservedWord()`.\n\n### Software Information:\n\n- JSqlParser version: 5.4-SNAPSHOT (master 406a4d4)\n- Database: PostgreSQL (affects any user with a column, table, or alias named `groups`)\n","author":{"url":"https://github.com/fudianchn","@type":"Person","name":"fudianchn"},"datePublished":"2026-08-15T11:50:12Z","url":"https://github.com/JSQLParser/JSqlParser/issues/2473"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aa82724a-477a-4760-e89d-e7fa6ca9eeeb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9E8:167EE0:E8F3:14B67:6B048CAC |
| html-safe-nonce | 7d9a004d4cdc541d57287a55f9306275c6588f1f9ae46eef847565bad32c6584 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUU4OjE2N0VFMDpFOEYzOjE0QjY3OjZCMDQ4Q0FDIiwidmlzaXRvcl9pZCI6IjQ2Nzk3OTMwODYxNjIwNDYxMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d215857a9f5a0a6647cf7ece2c45816fb34c5dc6b2820870544080dc9d469aca |
| hovercard-subject-tag | issue:5159231496 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/2473/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc6bbfa9286b70fd1f7c669aa249198661995eb39a4b3d563857aadeb06ea656/JSQLParser/JSqlParser/issues/2473 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc6bbfa9286b70fd1f7c669aa249198661995eb39a4b3d563857aadeb06ea656/JSQLParser/JSqlParser/issues/2473 |
| og:image:alt | Failing SQL Feature: GROUPS cannot be used as an identifier (column, table, or alias) anymore. The GROUPS keyword was introduced for PostgreSQL GROUPS window frames in d92f407 (#2460) and was place... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fudianchn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247 |
| turbo-cache-control | no-preview |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b51ce57ca6d4565a42856fc1c9897077c794597f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width