Unverified Commit 9a092f2c authored by Licho's avatar Licho Committed by GitHub

[Fix][SqlSegment]修复SQL配置在特定场景下解析失败的问题 (#1812) (#1954)

* [Fix][SqlSegment]修复SQL配置在特定场景下解析失败的问题 (#1812) * Spotless Apply --------- Co-authored-by: 's avatarAntChen <1151355296@qq.com> Co-authored-by: 's avatarleechor <leechor@users.noreply.github.com>
parent 3206819d
......@@ -35,7 +35,7 @@ import com.google.common.collect.Lists;
*/
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 @@ public class SqlSegment {
m.appendReplacement(sb, Crlf);
}
m.appendTail(sb);
String[] arr = sb.toString().split("[|]");
String[] arr = sb.toString().split("[" + Crlf + "]");
bodyPieces = Lists.newArrayList(arr);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment