IDEMPIERE-5112 NF8.2 Print Format Item Script not working on Oracle (#1065)

This commit is contained in:
Carlos Ruiz 2021-12-20 04:23:29 +01:00 committed by GitHub
parent a950ba9f00
commit a05a81154e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -423,6 +423,7 @@ public class DataEngine
continue; continue;
sqlSELECT.append(script).append(" AS \"").append(m_synonym).append(pfiName).append("\",") sqlSELECT.append(script).append(" AS \"").append(m_synonym).append(pfiName).append("\",")
// Warning here: Oracle treats empty strings '' as NULL and the code below checks for wasNull on this column
.append("' '").append(" AS \"").append(pfiName).append("\","); .append("' '").append(" AS \"").append(pfiName).append("\",");
// //
pdc = new PrintDataColumn(AD_PrintFormatItem_ID, -1, pfiName, DisplayType.Text, FieldLength, orderName, isPageBreak); pdc = new PrintDataColumn(AD_PrintFormatItem_ID, -1, pfiName, DisplayType.Text, FieldLength, orderName, isPageBreak);