Skip to content

DATAJPA-1406 - Improved alias detection.#291

Closed
schauder wants to merge 2 commits into
masterfrom
issue/DATAJPA-1406
Closed

DATAJPA-1406 - Improved alias detection.#291
schauder wants to merge 2 commits into
masterfrom
issue/DATAJPA-1406

Conversation

@schauder

Copy link
Copy Markdown
Contributor

There is now a minimal parser combinator library available for internal use.
It's used to tokenize SQL statements and then parse the resulting list of tokens.
This identifies the primary alias, join aliases, function aliases, and order by clause.

The new parser should handle comments, character literals, quoted identifiers and subselects correctly.
It also should be easier to extend and to adapt to further requirements.

schauder added 2 commits July 1, 2019 16:03
There is now a minimal parser combinator library available for internal use.
It's used to tokenize SQL statements and then parse the resulting list of tokens.
This identifies the primary alias, join aliases, function aliases, and order by claus.

The new parser should handle comments, character literals, quoted identifiers and subselects correctly.
It also should be easier to extend and to adapt to further requirements.
@schauder schauder force-pushed the issue/DATAJPA-1406 branch from 02d742b to 060324c Compare July 1, 2019 14:08
@schauder

Copy link
Copy Markdown
Contributor Author

In a team discussion we decided not get into full blown parsing of SQL and JPQL.
Instead we do what we can with a simplistic parser and what we can't handle with that will not be supported.

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.

1 participant