Skip to content

Commit

Permalink
Add missing attribute escapeNonPrintableChar in DS
Browse files Browse the repository at this point in the history
Fixes: #3686
  • Loading branch information
malakaganga committed Dec 19, 2024
1 parent d66c807 commit 22b5f69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ private static void processCallQuery(CommonParams cparams, XmlSchemaElement pare
activeElement.setMinOccurs(0);
activeElement.setMaxOccurs(Long.MAX_VALUE);
}

/* process the result content */
processElementGroup(cparams, activeElement, result.getDefaultElementGroup());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ private static void serializeResult(Result result, OMElement queryEl, OMFactory
if (elementName != null) {
resEl.addAttribute(DBSFields.ELEMENT, elementName, null);
}
String escapeNonPrintableChar = String.valueOf(result.isEscapeNonPrintableChar());
if (!escapeNonPrintableChar.isEmpty()) {
resEl.addAttribute(DBSFields.ESCAPE_NON_PRINTABLE_CHAR, escapeNonPrintableChar, null);
}
String rowName = result.getRowName();
if (rowName != null) {
resEl.addAttribute(DBSFields.ROW_NAME, rowName, null);
Expand Down

0 comments on commit 22b5f69

Please sign in to comment.