HHH-14351 Fix order by type discriminator rendering issue

This commit is contained in:
Christian Beikov 2021-02-03 15:15:01 +01:00
parent d2036cb11a
commit 5d9f6936ff
1 changed files with 1 additions and 1 deletions

View File

@ -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 )?
; ;