未验证 提交 69ad700b 编写于 作者: E Elizabeth 提交者: GitHub

#15800 fix showing nulls logic in txt export (#15814)

上级 e9378081
......@@ -183,10 +183,9 @@ public class DataExporterTXT extends StreamExporterAbstract {
private String getCellString(DBDAttributeBinding attr, Object value) {
final String displayString = attr.getValueHandler().getValueDisplayString(attr, value, getValueExportFormat(attr));
if (showNulls && displayString.isEmpty() && DBUtils.isNullValue(value)) {
return DBConstants.NULL_VALUE_LABEL;
if (DBUtils.isNullValue(value)) {
return showNulls ? DBConstants.NULL_VALUE_LABEL : "";
}
return CommonUtils.getSingleLineString(displayString);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册