From 66c409aec6cd727f519bb11725c2185b748efe7f Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2020 15:05:20 +0200 Subject: [PATCH] Bump mysql-connector-java from 5.1.46 to 8.0.20 (#2726) * Bump mysql-connector-java from 5.1.46 to 8.0.20 Bumps [mysql-connector-java](https://github.com/mysql/mysql-connector-j) from 5.1.46 to 8.0.20. - [Release notes](https://github.com/mysql/mysql-connector-j/releases) - [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES) - [Commits](https://github.com/mysql/mysql-connector-j/compare/5.1.46...8.0.20) Signed-off-by: dependabot-preview[bot] * Remove unneeded references to com.mysql.jdbc.ResultSetMetaData Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Tom Morris --- extensions/database/pom.xml | 2 +- .../extension/database/mysql/MySQLDatabaseService.java | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/extensions/database/pom.xml b/extensions/database/pom.xml index eeab5e08d..ed7d42dac 100644 --- a/extensions/database/pom.xml +++ b/extensions/database/pom.xml @@ -138,7 +138,7 @@ mysql mysql-connector-java - 5.1.46 + 8.0.20 org.jasypt diff --git a/extensions/database/src/com/google/refine/extension/database/mysql/MySQLDatabaseService.java b/extensions/database/src/com/google/refine/extension/database/mysql/MySQLDatabaseService.java index 6a3fee162..8f4492f0b 100644 --- a/extensions/database/src/com/google/refine/extension/database/mysql/MySQLDatabaseService.java +++ b/extensions/database/src/com/google/refine/extension/database/mysql/MySQLDatabaseService.java @@ -86,9 +86,6 @@ public class MySQLDatabaseService extends DatabaseService { Statement statement = connection.createStatement(); ResultSet queryResult = statement.executeQuery(query); java.sql.ResultSetMetaData metadata = queryResult.getMetaData(); - if(metadata instanceof com.mysql.jdbc.ResultSetMetaData) { - metadata = (com.mysql.jdbc.ResultSetMetaData)metadata; - } int columnCount = metadata.getColumnCount(); ArrayList columns = new ArrayList(columnCount); for (int i = 1; i <= columnCount; i++) { @@ -163,9 +160,6 @@ public class MySQLDatabaseService extends DatabaseService { Statement statement = connection.createStatement(); ResultSet queryResult = statement.executeQuery(query); java.sql.ResultSetMetaData metadata = queryResult.getMetaData(); - if(metadata instanceof com.mysql.jdbc.ResultSetMetaData) { - metadata = (com.mysql.jdbc.ResultSetMetaData)metadata; - } int columnCount = metadata.getColumnCount(); ArrayList columns = new ArrayList(columnCount); for (int i = 1; i <= columnCount; i++) { @@ -189,9 +183,6 @@ public class MySQLDatabaseService extends DatabaseService { statement.setFetchSize(10); ResultSet queryResult = statement.executeQuery(query); java.sql.ResultSetMetaData metadata = queryResult.getMetaData(); - if(metadata instanceof com.mysql.jdbc.ResultSetMetaData) { - metadata = (com.mysql.jdbc.ResultSetMetaData)metadata; - } int columnCount = metadata.getColumnCount(); int index = 0; List rows = new ArrayList();