You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2022/11/08 12:39:58 UTC
[shardingsphere] branch master updated: Revise #22011 (#22018)
This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 7b1e9ffd1b9 Revise #22011 (#22018)
7b1e9ffd1b9 is described below
commit 7b1e9ffd1b9de48a2496b742c56ea04b3ce855ef
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Tue Nov 8 20:39:51 2022 +0800
Revise #22011 (#22018)
---
.../apache/shardingsphere/sql/parser/result/CSVResultGenerator.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/integration-test/sql-parser/src/test/java/org/apache/shardingsphere/sql/parser/result/CSVResultGenerator.java b/test/integration-test/sql-parser/src/test/java/org/apache/shardingsphere/sql/parser/result/CSVResultGenerator.java
index e8a6292702e..176c7afd4aa 100644
--- a/test/integration-test/sql-parser/src/test/java/org/apache/shardingsphere/sql/parser/result/CSVResultGenerator.java
+++ b/test/integration-test/sql-parser/src/test/java/org/apache/shardingsphere/sql/parser/result/CSVResultGenerator.java
@@ -33,7 +33,8 @@ public final class CSVResultGenerator {
public CSVResultGenerator(final String databaseType) {
CSVFormat csvFormat = CSVFormat.DEFAULT.builder().setHeader("SQLCaseId", "DatabaseType", "Result", "SQL").setSkipHeaderRecord(false).build();
- try (Writer out = new FileWriter(databaseType + "-result.csv", true)) {
+ try {
+ Writer out = new FileWriter(databaseType + "-result.csv", true);
printer = new CSVPrinter(out, csvFormat);
} catch (final IOException ex) {
throw new RuntimeException("Create CSV file failed.", ex);