Skip to content

Commit

Permalink
feat: 修复null的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Link-Kou committed Mar 3, 2021
1 parent c1239f5 commit b51cce1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ select f_id, f_groupId, f_preId, f_name, f_type, createtime, updatedtime

2020.2 以上版本都支持
>
[plugin.intellij.assistant.mybaitslog-2020.X-2.0.1.jar](https://raw.githubusercontent.com/Link-Kou/intellij-mybaitslog/master/plugin/plugin.intellij.assistant.mybaitslog-2.0.1.jar)
[plugin.intellij.assistant.mybaitslog-2020.X-2.0.2.jar](https://raw.githubusercontent.com/Link-Kou/intellij-mybaitslog/master/plugin/plugin.intellij.assistant.mybaitslog-2.0.2.jar)


> ##### 说明文档:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'java'


group 'com.linkkou'
version '2.0.1'
version '2.0.2'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
Binary file not shown.
10 changes: 10 additions & 0 deletions src/test/java/com/plugins/mybaitslog/SqlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,14 @@ public void format6() {
System.out.println(strings[0]);
System.out.println(strings[1]);
}


@Test
public void format7() {
String preparingLine ="16:51:11.228 DEBUG [Test worker] c.p.d.h.m.H.insert : ==> Preparing: insert into his_match_main (his_id, is_invalid, matching_result, create_time, modify_time) values (?, ?, ?, ?, ?)\n";
String parametersLine = "16:51:11.246 DEBUG [Test worker] c.p.d.h.m.H.insert : ==> Parameters: 999999(Integer), null, {}(String), 2021-02-24 16:51:11.184(Timestamp), 2021-02-24 16:51:11.184(Timestamp)\n";
final String[] strings = SqlProUtil.restoreSql(null, preparingLine, parametersLine);
System.out.println(strings[0]);
System.out.println(strings[1]);
}
}

0 comments on commit b51cce1

Please sign in to comment.