Skip to content

Commit

Permalink
Merge pull request #4953 from matthiasblaesing/connector_j_bump2
Browse files Browse the repository at this point in the history
db.metadata.model: Bump connector/j version to prevent unittest failures ran against newer mysql server
  • Loading branch information
matthiasblaesing authored Nov 10, 2022
2 parents 9104077 + 2add704 commit c69515d
Show file tree
Hide file tree
Showing 6 changed files with 1,399 additions and 320 deletions.
2 changes: 1 addition & 1 deletion ide/db.metadata.model/external/binaries-list
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# under the License.

7EFAD40EF52FBB1F08142F07A83B42D29E47D8CE org.apache.derby:derby:10.14.2.0
9140BE77AAFA5050BF4BB936D560CBACB5A6B5C1 mysql:mysql-connector-java:5.1.48
3FD5850719D7E82D50705D34CC6A0037FAB5731F com.mysql:mysql-connector-j:8.0.31
1,392 changes: 1,392 additions & 0 deletions ide/db.metadata.model/external/mysql-connector-j-8.0.31-license.txt

Large diffs are not rendered by default.

316 changes: 0 additions & 316 deletions ide/db.metadata.model/external/mysql-connector-java-5.1.48-license.txt

This file was deleted.

2 changes: 1 addition & 1 deletion ide/db.metadata.model/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
javac.source=1.8
javac.compilerargs=-Xlint -Xlint:-serial

test.unit.cp.extra=external/derby-10.14.2.0.jar\:external/mysql-connector-java-5.1.48.jar
test.unit.cp.extra=external/derby-10.14.2.0.jar\:external/mysql-connector-j-8.0.31.jar

test.config.stableBTD.includes=**/*Test.class
test.config.stableBTD.excludes=\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public JDBCMetadataMySQLTest(String name) {
@Override
public boolean canRun() {
try {
Class.forName("com.mysql.jdbc.Driver");
Class.forName("com.mysql.cj.jdbc.Driver");
return super.canRun();
} catch (ClassNotFoundException e) {
LOG.warning(String.format("Test %s in %s disabled, %s not available", this.getName(), this.getClass().getName(), e.getMessage()));
Expand All @@ -93,7 +93,7 @@ public void setUp() throws Exception {
mysqlUser = System.getProperty("mysql.user", "test");
mysqlPassword = System.getProperty("mysql.password", "test");
clearWorkDir();
Class.forName("com.mysql.jdbc.Driver");
Class.forName("com.mysql.cj.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://" + mysqlHost + ":" + mysqlPort, mysqlUser, mysqlPassword);
stmt = conn.createStatement();
stmt.executeUpdate("DROP DATABASE IF EXISTS test");
Expand Down
Loading

0 comments on commit c69515d

Please sign in to comment.