diff --git a/dinky-executor/src/main/java/org/dinky/parser/SqlSegment.java b/dinky-executor/src/main/java/org/dinky/parser/SqlSegment.java index 83d93752f5..29caab0f06 100644 --- a/dinky-executor/src/main/java/org/dinky/parser/SqlSegment.java +++ b/dinky-executor/src/main/java/org/dinky/parser/SqlSegment.java @@ -35,7 +35,7 @@ */ public class SqlSegment { - private static final String Crlf = "|"; + private static final String Crlf = new String(new byte[] {1}); @SuppressWarnings("unused") private static final String FourSpace = "  "; @@ -98,7 +98,7 @@ private void parseBody() { m.appendReplacement(sb, Crlf); } m.appendTail(sb); - String[] arr = sb.toString().split("[|]"); + String[] arr = sb.toString().split("[" + Crlf + "]"); bodyPieces = Lists.newArrayList(arr); }