Skip to content

Commit

Permalink
[Fix][SqlSegment]修复SQL配置在特定场景下解析失败的问题 (DataLinkDC#1812) (DataLinkDC#1954
Browse files Browse the repository at this point in the history
)

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

* Spotless Apply

---------

Co-authored-by: AntChen <1151355296@qq.com>
Co-authored-by: leechor <leechor@users.noreply.github.com>
  • Loading branch information
3 people authored May 9, 2023
1 parent 3206819 commit 9a092f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dinky-executor/src/main/java/org/dinky/parser/SqlSegment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "  ";
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 9a092f2

Please sign in to comment.