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 bae02af commit 5945ee9Copy full SHA for 5945ee9
src/main/java/org/apache/ibatis/scripting/xmltags/ForEachSqlNode.java
@@ -61,12 +61,10 @@ public boolean apply(DynamicContext context) {
61
int i = 0;
62
for (Object o : iterable) {
63
DynamicContext oldContext = context;
64
- if (first) {
+ if (first || separator == null) {
65
context = new PrefixedContext(context, "");
66
- } else if (separator != null) {
67
- context = new PrefixedContext(context, separator);
68
} else {
69
- context = new PrefixedContext(context, "");
+ context = new PrefixedContext(context, separator);
70
}
71
int uniqueNumber = context.getUniqueNumber();
72
// Issue #709
0 commit comments