[jOOQ/jOOQ#13290] Result.formatCSV() is also affected

This commit is contained in:
Lukas Eder 2022-03-16 16:31:10 +01:00
parent 33aea42499
commit 3d8516117e

View File

@ -397,7 +397,8 @@ abstract class AbstractResult<R extends Record> extends AbstractFormattable impl
writer.append(format.newline());
}
for (Record record : this) {
for (R record : this) {
record = nullSafe(record);
String sep2 = "";
int size = fields.size();
@ -418,7 +419,7 @@ abstract class AbstractResult<R extends Record> extends AbstractFormattable impl
}
}
private final String formatCSV0(Object value, CSVFormat format) {
private static final String formatCSV0(Object value, CSVFormat format) {
// [#2741] TODO: This logic will be externalised in new SPI
// [#4746] Escape null and empty strings