We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2036cb commit 5d9f693Copy full SHA for 5d9f693
hibernate-core/src/main/antlr/sql-gen.g
@@ -199,7 +199,7 @@ orderExprs { String ordExp = null; String ordDir = null; String ordNul = null; }
199
(dir:orderDirection { ordDir = #dir.getText(); })? (ordNul=nullOrdering)?
200
// SQL Tokens can be passed through as-is.
201
// These tokens could be mapping defined order by fragments which are already rendered via the dialect hook
202
- { out( #e.getType() == SQL_TOKEN ? ordExp : renderOrderByElement( ordExp, ordDir, ordNul ) ); }
+ { out( #e.getType() == SQL_TOKEN && ordDir == null && ordNul == null ? ordExp : renderOrderByElement( ordExp, ordDir, ordNul ) ); }
203
( {out(", "); } orderExprs )?
204
;
205
0 commit comments