[#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:
Lukas Eder 2012-03-01 20:15:22 +00:00
parent 399e5769e3
commit fd2cee4561

View File

@ -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) {