File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
main/java/org/springframework/data/jdbc/repository/config
java/org/springframework/data/jdbc/testing Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 3434<mybatis-spring .version>2.0.0</mybatis-spring .version>
3535<mysql-connector-java .version>5.1.41</mysql-connector-java .version>
3636<postgresql .version>42.0.0</postgresql .version>
37- <mariadb-java-client .version>2.2.3 </mariadb-java-client .version>
37+ <mariadb-java-client .version>2.6.0 </mariadb-java-client .version>
3838<jsr305 .version>3.0.2</jsr305 .version>
3939</properties >
4040
Original file line number Diff line number Diff line change 2424
2525import javax .sql .DataSource ;
2626
27+ import org .apache .commons .logging .Log ;
28+ import org .apache .commons .logging .LogFactory ;
2729import org .springframework .core .io .support .SpringFactoriesLoader ;
2830import org .springframework .dao .NonTransientDataAccessException ;
2931import org .springframework .data .relational .core .dialect .Db2Dialect ;
5254 */
5355public class DialectResolver {
5456
57+ private static final Log LOG = LogFactory .getLog (DialectResolver .class );
58+
5559private static final List <JdbcDialectProvider > DETECTORS = SpringFactoriesLoader
5660.loadFactories (JdbcDialectProvider .class , DialectResolver .class .getClassLoader ());
5761
@@ -127,6 +131,8 @@ private static Dialect getDialect(Connection connection) throws SQLException {
127131if (name .contains ("db2" )) {
128132return Db2Dialect .INSTANCE ;
129133}
134+
135+ LOG .info (String .format ("Couldn't determine Dialect for \" %s\" " , name ) );
130136return null ;
131137}
132138
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ protected DataSource createDataSource() {
5151
5252if (MARIADB_CONTAINER == null ) {
5353
54- MariaDBContainer <?> container = new MariaDBContainer <>()
54+ MariaDBContainer <?> container = new MariaDBContainer <>("mariadb:10.5" )
5555.withUsername ("root" )
5656.withPassword ("" )
5757.withConfigurationOverride ("" );
Original file line number Diff line number Diff line change 88</appender >
99
1010<logger name =" org.springframework.test.context.TestContextManager" level =" off" />
11- <!-- < logger name="org.springframework.data" level="info" /> -- >
11+ <logger name =" org.springframework.data" level =" info" />
1212<!-- <logger name="org.springframework.jdbc.core" level="trace" />-->
1313<!-- <logger name="org.springframework.data.jdbc.mybatis.DummyEntityMapper" level="trace" />-->
1414
You can’t perform that action at this time.
0 commit comments