Skip to content

Commit 3eff78a

Browse files
committed
Related to #68. Awful patch to keep backward compatibility.
1 parent 36bc1b6 commit 3eff78a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ private void databaseIdProviderElement(XNode context) throws Exception {
241241
DatabaseIdProvider databaseIdProvider = null;
242242
if (context != null) {
243243
String type = context.getStringAttribute("type");
244+
if ("VENDOR".equals(type)) type = "DB_VENDOR"; // awful patch to keep backward compatibility
244245
Properties properties = context.getChildrenAsProperties();
245246
databaseIdProvider = (DatabaseIdProvider) resolveClass(type).newInstance();
246247
databaseIdProvider.setProperties(properties);

0 commit comments

Comments
 (0)