FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow isolation keywords as column name and aliases by tomershay · Pull Request #1534 · JSQLParser/JSqlParser · GitHub

Allow isolation keywords as column name and aliases - #1534

Merged
wumpz merged 1 commit into
JSQLParser:masterfrom
tomershay:allow_isolation_keywords_as_column_names_and_aliases
May 19, 2022
Merged

Allow isolation keywords as column name and aliases#1534
wumpz merged 1 commit into
JSQLParser:masterfrom
tomershay:allow_isolation_keywords_as_column_names_and_aliases

Conversation

Copy link
Copy Markdown
Contributor

This allows to parse statements such as:
SELECT col FROM tbl cs


@Test
public void selectIsolationKeywordsAsAlias() throws JSQLParserException {
String stmt = "SELECT col FROM tbl cs";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You do not test your isolation usage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There are other tests already testing isolation usage (for example, testWithIsolation).
This PR just allows "cs" to be used as a column name / alias, as otherwise parsing fails when it's used.

wumpz merged commit fc5a9a3 into JSQLParser:master May 19, 2022
manfredma pushed a commit to manfredma/exercises that referenced this pull request Jun 17, 2024
manfredma pushed a commit to manfredma/exercises that referenced this pull request Jul 8, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL