This commit is contained in:
wenyh1
2023-05-30 17:24:47 +08:00
parent 78a322420c
commit 696d21e5f0

View File

@@ -17,7 +17,7 @@ public class StatisticEntry {
public StatisticEntry(FrontendInfo frontendInfo, long startTime,
String sql, long rows, long endTime) {
this.frontend = frontendInfo;
this.sql = sql.replaceAll("[\\t\\n\\r]", " ");
this.sql = sql.replaceAll("[\\t\\n\\r]", " ").trim();
this.rows = rows;
this.duration = endTime - startTime;
}