<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
- <version>3.0.6</version>
+ <version>3.1.1</version>
</dependency>
<dependency>
<groupId>org.picocontainer</groupId>
*/
package org.sonar.core.persistence;
+import org.apache.ibatis.type.JdbcType;
+
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.ibatis.builder.xml.XMLMapperBuilder;
conf.setEnvironment(new Environment("production", createTransactionFactory(), database.getDataSource()));
conf.setUseGeneratedKeys(true);
conf.setLazyLoadingEnabled(false);
+ conf.setJdbcTypeForNull(JdbcType.NULL);
conf.getVariables().setProperty("_true", database.getDialect().getTrueSqlValue());
conf.getVariables().setProperty("_false", database.getDialect().getFalseSqlValue());