Skip to content

Commit 951a99c

Browse files
committed
Fix issue #366
1 parent 1c5a2cb commit 951a99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ private SqlSource buildSqlSourceFromStrings(String[] strings, Class<?> parameter
436436
sql.append(fragment);
437437
sql.append(" ");
438438
}
439-
return languageDriver.createSqlSource(configuration, sql.toString(), parameterTypeClass);
439+
return languageDriver.createSqlSource(configuration, sql.toString().trim(), parameterTypeClass);
440440
}
441441

442442
private SqlCommandType getSqlCommandType(Method method) {

0 commit comments

Comments
 (0)