You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/05/24 20:04:39 UTC
[commons-csv] branch master updated: Add in-line comment.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push:
new 1a33fd8 Add in-line comment.
1a33fd8 is described below
commit 1a33fd8f96e1ae98dddd8de3f7dfed62ba222a5c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 24 16:04:35 2020 -0400
Add in-line comment.
---
src/main/java/org/apache/commons/csv/CSVPrinter.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index d5e6aca..a0cc612 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -382,6 +382,7 @@ public final class CSVPrinter implements Flushable, Closeable {
while (resultSet.next()) {
for (int i = 1; i <= columnCount; i++) {
final Object object = resultSet.getObject(i);
+ // TODO Who manages the Clob? The JDBC driver or must we close it? Is it driver-dependent?
print(object instanceof Clob ? ((Clob) object).getCharacterStream() : object);
}
println();