HHH-14351 Fix order by type discriminator rendering issue
This commit is contained in:
parent
d2036cb11a
commit
5d9f6936ff
|
@ -199,7 +199,7 @@ orderExprs { String ordExp = null; String ordDir = null; String ordNul = null; }
|
||||||
(dir:orderDirection { ordDir = #dir.getText(); })? (ordNul=nullOrdering)?
|
(dir:orderDirection { ordDir = #dir.getText(); })? (ordNul=nullOrdering)?
|
||||||
// SQL Tokens can be passed through as-is.
|
// SQL Tokens can be passed through as-is.
|
||||||
// These tokens could be mapping defined order by fragments which are already rendered via the dialect hook
|
// These tokens could be mapping defined order by fragments which are already rendered via the dialect hook
|
||||||
{ out( #e.getType() == SQL_TOKEN ? ordExp : renderOrderByElement( ordExp, ordDir, ordNul ) ); }
|
{ out( #e.getType() == SQL_TOKEN && ordDir == null && ordNul == null ? ordExp : renderOrderByElement( ordExp, ordDir, ordNul ) ); }
|
||||||
( {out(", "); } orderExprs )?
|
( {out(", "); } orderExprs )?
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue