Add a newline before query in INSERT INTO formatting
@@ -935,8 +935,7 @@ public final class SqlFormatter
protected Void visitInsert(Insert node, Integer indent)
{
builder.append("INSERT INTO ")
- .append(node.getTarget())
- .append(" ");
+ .append(node.getTarget());
if (node.getColumns().isPresent()) {
builder.append(" (")
@@ -944,6 +943,8 @@ public final class SqlFormatter
.append(")");
}
+ builder.append("\n");
+
process(node.getQuery(), indent);
return null;
