[#521] Add runtime configuration for SQL reference style (upper case, lower case, as-is, quoted) - Fixed potential regression with NPE's when using CustomTables
This commit is contained in:
parent
399e5769e3
commit
fd2cee4561
@ -131,6 +131,12 @@ class DefaultRenderContext extends AbstractContext<RenderContext> implements Ren
|
||||
|
||||
@Override
|
||||
public final RenderContext literal(String literal) {
|
||||
// Literal usually originates from NamedQueryPart.getName(). This could
|
||||
// be null for CustomTable et al.
|
||||
if (literal == null) {
|
||||
return this;
|
||||
}
|
||||
|
||||
RenderNameStyle style = configuration.getSettings().getRenderNameStyle();
|
||||
|
||||
if (RenderNameStyle.LOWER == style) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user