Răsfoiți Sursa

Merge pull request #2603 from michaelhixson/wicket-mysql-connector-6-to-5

Fix broken wicket db tests by downgrading the mysql connector
Michael Hixson 8 ani în urmă
părinte
comite
61d04374f1

+ 1 - 1
frameworks/Java/wicket/pom.xml

@@ -74,7 +74,7 @@
 		<dependency>
 			<groupId>mysql</groupId>
 			<artifactId>mysql-connector-java</artifactId>
-			<version>6.0.5</version>
+			<version>5.1.41</version>
 		</dependency>
 	</dependencies>
 	<build>

+ 1 - 1
frameworks/Java/wicket/src/main/java/hellowicket/WicketApplication.java

@@ -80,7 +80,7 @@ public class WicketApplication extends WebApplication
 
 				// use faster DataSource impl
 				ds.setJdbcUrl("jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&useSSL=false");
-				ds.setDriverClassName("com.mysql.cj.jdbc.Driver");
+				ds.setDriverClassName("com.mysql.jdbc.Driver");
 				ds.setUsername("benchmarkdbuser");
 				ds.setPassword("benchmarkdbpass");
 				dataSource = ds;