Skip to content

NH-3414 - Fixes ORDER BY HQL grammar #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2016
Merged

Conversation

PleasantD
Copy link
Contributor

The HqlSqlWalker grammar was not supporting more than a single query in the ORDER clause.
It would handle multiple expressions because it was looking for them with a recursive lookup, but the parsing of a query was only being handled by the master ORDER clause.

So a single query would work, or any number of expression. But combine an expression with a query or multiple queries and it would fail.

I moved the query check into the inner part of the ORDER grammar so that it becomes part of the recursive parsing, like expressions.

@hazzik hazzik changed the title Fixes [NH-3414] (http://nhibernate.jira.com/browse/NH-3414) NH-3414 - Fixes ORDER BY grammar Jun 5, 2016
@hazzik
Copy link
Member

hazzik commented Jun 7, 2016

@PleasantD new tests are failing for Firebird with "Dynamic SQL Error" in SetUP. Can you please take a look?

@PleasantD PleasantD force-pushed the NH-3414 branch 2 times, most recently from 8469e61 to 3cb3aed Compare June 8, 2016 00:14
@PleasantD
Copy link
Contributor Author

Fixed and squashed. Firebird didn't like that the column name was "Value".

@hazzik
Copy link
Member

hazzik commented Jun 8, 2016

@PleasantD rebase?

@PleasantD
Copy link
Contributor Author

Done

@hazzik hazzik changed the title NH-3414 - Fixes ORDER BY grammar NH-3414 - Fixes ORDER BY HQL grammar Jun 9, 2016
@hazzik hazzik merged commit b7c085c into nhibernate:master Jun 9, 2016
@hazzik hazzik added this to the 4.1.0 milestone Jun 9, 2016
@PleasantD PleasantD deleted the NH-3414 branch March 6, 2017 21:20
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