[#161] Add runtime configuration to pretty print rendered SQL - fixed indentation of subselects
This commit is contained in:
parent
64fd48639c
commit
eb7f140ece
@ -170,6 +170,10 @@ implements
|
||||
@Override
|
||||
public final void toSQL(RenderContext context) {
|
||||
|
||||
// If this is a nested select, be sure that indentation will stay on
|
||||
// the same level for the whole nested select
|
||||
context.formatIndentLockStart();
|
||||
|
||||
// If a limit applies
|
||||
if (getLimit().isApplicable()) {
|
||||
switch (context.getDialect()) {
|
||||
@ -300,6 +304,9 @@ implements
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// See start of method: Indent locking for nested selects
|
||||
context.formatIndentLockEnd();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user