Unable to find source-code formatter for language: borderstyle. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
if ( nullPrecedence == null || nullPrecedence == NullPrecedence.NONE ) {
return super.renderOrderByElement( expression, collation, order, NullPrecedence.NONE );
}
if ( ( nullPrecedence == NullPrecedence.FIRST && "desc".equalsIgnoreCase( order ) )
|| ( nullPrecedence == NullPrecedence.LAST && "asc".equalsIgnoreCase( order ) ) ) {
return super.renderOrderByElement( expression, collation, order, NullPrecedence.NONE );
}
return String.format(
Locale.ENGLISH,
"case when %s is null then %s else %s end, %s %s",
expression,
nullPrecedence == NullPrecedence.FIRST ? "0" : "1",
nullPrecedence == NullPrecedence.FIRST ? "1" : "0",
expression,
order
);