Skip to content

Commit 0bcbe4c

Browse files
[Java]: Bump mysql-connector-java version from 8.0.33 to mysql-connector-j 8.4.0 (#17522)
Signed-off-by: Harshit Gangal <[email protected]>
1 parent db4fca3 commit 0bcbe4c

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

java/example/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
<dependency>
3333
<groupId>mysql</groupId>
34-
<artifactId>mysql-connector-java</artifactId>
35-
<version>8.0.33</version>
34+
<artifactId>mysql-connector-j</artifactId>
35+
<version>8.4.0</version>
3636
<optional>false</optional>
3737
</dependency>
3838

java/jdbc/src/main/java/io/vitess/jdbc/VitessJDBCUrl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private static Properties getURLParamProperties(String paramString, Properties i
218218
}
219219
}
220220

221-
// Per the mysql-connector-java docs, passed in Properties values should take precedence
221+
// Per the mysql-connector-j docs, passed in Properties values should take precedence
222222
// over
223223
// those in the URL. See javadoc for NonRegisteringDriver#connect
224224
if ((null != value && value.length() > 0) && (parameter.length() > 0) && null == info

java/jdbc/src/main/java/io/vitess/jdbc/VitessParameterMetaData.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class VitessParameterMetaData implements ParameterMetaData {
2525
private final int parameterCount;
2626

2727
/**
28-
* This implementation (and defaults below) is equivalent to mysql-connector-java's "simple"
28+
* This implementation (and defaults below) is equivalent to mysql-connector-j's "simple"
2929
* (non-server) statement metadata
3030
*/
3131
VitessParameterMetaData(int count) {

java/jdbc/src/main/java/io/vitess/jdbc/VitessPreparedStatement.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public ParameterMetaData getParameterMetaData() throws SQLException {
426426
}
427427

428428
/**
429-
* This function was ported from mysql-connector-java ParseInfo object and greatly simplified to
429+
* This function was ported from mysql-connector-j ParseInfo object and greatly simplified to
430430
* just the parts for counting parameters
431431
*/
432432
private int calculateParameterCount() throws SQLException {

java/jdbc/src/main/java/io/vitess/util/charset/CharsetMapping.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.util.Map;
2525

2626
/**
27-
* These classes were pulled from mysql-connector-java and simplified to just the parts supporting
27+
* These classes were pulled from mysql-connector-j and simplified to just the parts supporting
2828
* the statically available charsets
2929
*/
3030
public class CharsetMapping {

java/jdbc/src/main/java/io/vitess/util/charset/Collation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package io.vitess.util.charset;
1818

1919
/**
20-
* These classes were pulled from mysql-connector-java and simplified to just the parts supporting
20+
* These classes were pulled from mysql-connector-j and simplified to just the parts supporting
2121
* the statically available charsets
2222
*/
2323
class Collation {

java/jdbc/src/main/java/io/vitess/util/charset/MysqlCharset.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.Set;
2424

2525
/**
26-
* These classes were pulled from mysql-connector-java and simplified to just the parts supporting
26+
* These classes were pulled from mysql-connector-j and simplified to just the parts supporting
2727
* the statically available charsets
2828
*/
2929
class MysqlCharset {

java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
<failOnWarning>true</failOnWarning>
253253
<outputXML>true</outputXML>
254254
<ignoredUnusedDeclaredDependencies>
255-
<dependency>mysql:mysql-connector-java</dependency>
255+
<dependency>mysql:mysql-connector-j</dependency>
256256
<dependency>io.grpc:grpc-context</dependency>
257257
</ignoredUnusedDeclaredDependencies>
258258
</configuration>

0 commit comments

Comments
 (0)