Skip to content

Conversation

@ylyxf
Copy link
Contributor

@ylyxf ylyxf commented Oct 3, 2015

when parse mapper xml files , it needs to know what databaseId is。
org.apache.ibatis.builder.xml.XMLConfigBuilder'smethod:databaseIdProviderElement,will set databaseId if "environment != null && databaseIdProvider != null",but the configuration's environment is null becase it will be seted after "xmlConfigBuilder.parse();" in file "SqlSessionFactoryBean.java"

when parse mapper xml files , it needs to know what databaseId is。
org.apache.ibatis.builder.xml.XMLConfigBuilder'smethod:databaseIdProviderElement,will set databaseId if "environment != null && databaseIdProvider != null",but the configuration's environment  is null becase it will set after  "xmlConfigBuilder.parse();" in file "SqlSessionFactoryBean.java"
emacarron added a commit that referenced this pull request Oct 3, 2015
fix #64 set databaseId before parse mapper xmls
@emacarron emacarron merged commit 0f05f5f into mybatis:master Oct 3, 2015
@emacarron emacarron added the bug label Oct 3, 2015
@emacarron emacarron added this to the 1.3.0 milestone Oct 3, 2015
@emacarron emacarron self-assigned this Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants