We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08b503 commit 9022469Copy full SHA for 9022469
src/main/java/org/apache/ibatis/scripting/xmltags/XMLScriptBuilder.java
@@ -80,6 +80,9 @@ protected MixedSqlNode parseDynamicTags(XNode node) {
80
XNode child = node.newXNode(children.item(i));
81
if (child.getNode().getNodeType() == Node.CDATA_SECTION_NODE || child.getNode().getNodeType() == Node.TEXT_NODE) {
82
String data = child.getStringBody("");
83
+ if (data.trim().isEmpty()) {
84
+ continue;
85
+ }
86
TextSqlNode textSqlNode = new TextSqlNode(data);
87
if (textSqlNode.isDynamic()) {
88
contents.add(textSqlNode);
0 commit comments