Skip to content

Commit 7123141

Browse files
committed
Fix for issue #2. StackOverflow when using databaseId.
1 parent bd42b0a commit 7123141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/builder/xml/XMLStatementBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private boolean databaseIdMatchesCurrent(String id, String databaseId, String re
169169
// skip this statement if there is a previous one with a not null databaseId
170170
id = builderAssistant.applyCurrentNamespace(id, false);
171171
if (this.configuration.hasStatement(id, false)) {
172-
MappedStatement previous = this.configuration.getMappedStatement(id);
172+
MappedStatement previous = this.configuration.getMappedStatement(id, false); // issue #2
173173
if (previous.getDatabaseId() != null) {
174174
return false;
175175
}

0 commit comments

Comments
 (0)