Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ grammar Hql;
* management of complex rules in the generated Visitor. Finally, there are labels applied to rule elements (op=('+'|'-')
* to simplify the processing.
*
* @author Greg Turnquist
* @author Greg Turnquist, Yannick Brandt
* @since 3.1
*/
}
Expand Down Expand Up @@ -1133,6 +1133,7 @@ reservedWord
| BY
| CASE
| CAST
| CEILING
| COLLATE
| CONTAINS
| COUNT
Expand Down Expand Up @@ -1206,6 +1207,7 @@ reservedWord
| LIMIT
| LIST
| LISTAGG
| LN
| LOCAL
| LOCAL_DATE
| LOCAL_DATETIME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*
* @author Greg Turnquist
* @author Christoph Strobl
* @author Mark Paluch
* @author Mark Paluch, Yannick Brandt
* @since 3.1
*/
class HqlQueryRendererTests {
Expand Down Expand Up @@ -1509,6 +1509,16 @@ select round(count(ri) * 100 / max(ri.receipt.positions), 0) as perc
});
}

@Test
void ceilingFunctionShouldWork() {
assertQuery("select ceiling(1.5) from Element a");
}

@Test
void lnFunctionSouldWork() {
assertQuery("select ln(7.5) from Element a");
}

@Test // GH-2981
void cteWithClauseShouldWork() {

Expand Down
Loading