You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by me...@apache.org on 2025/09/16 09:19:23 UTC
(shardingsphere) branch master updated: Fix MySQL JDBC query properties extension when SSL is required on server (#36581)
This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 3d8c174b9b9 Fix MySQL JDBC query properties extension when SSL is required on server (#36581)
3d8c174b9b9 is described below
commit 3d8c174b9b9884b5c9d7fb2e5b2c51d3a362a721
Author: Hongsheng Zhong <zh...@apache.org>
AuthorDate: Tue Sep 16 17:19:16 2025 +0800
Fix MySQL JDBC query properties extension when SSL is required on server (#36581)
---
.../pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtension.java | 1 -
.../mysql/datasource/MySQLJdbcQueryPropertiesExtensionTest.java | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtension.java b/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtension.java
index 421714c250c..99ff6360e1e 100644
--- a/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtension.java
+++ b/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtension.java
@@ -36,7 +36,6 @@ public final class MySQLJdbcQueryPropertiesExtension implements JdbcQueryPropert
private final Properties completeIfMissedQueryProps = new Properties();
public MySQLJdbcQueryPropertiesExtension() {
- toBeOverrideQueryProps.setProperty("useSSL", Boolean.FALSE.toString());
toBeOverrideQueryProps.setProperty("useServerPrepStmts", Boolean.FALSE.toString());
toBeOverrideQueryProps.setProperty("rewriteBatchedStatements", Boolean.TRUE.toString());
toBeOverrideQueryProps.setProperty("yearIsDateType", Boolean.FALSE.toString());
diff --git a/kernel/data-pipeline/dialect/mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtensionTest.java b/kernel/data-pipeline/dialect/mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtensionTest.java
index 15f1758534a..2d0bcae034c 100644
--- a/kernel/data-pipeline/dialect/mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtensionTest.java
+++ b/kernel/data-pipeline/dialect/mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/datasource/MySQLJdbcQueryPropertiesExtensionTest.java
@@ -53,8 +53,7 @@ class MySQLJdbcQueryPropertiesExtensionTest {
}
private void assertQueryProperties(final Properties actual, final String expectedNetTimeoutForStreamingResults) {
- assertThat(actual.size(), is(8));
- assertThat(actual.getProperty("useSSL"), is(Boolean.FALSE.toString()));
+ assertThat(actual.size(), is(7));
assertThat(actual.getProperty("useServerPrepStmts"), is(Boolean.FALSE.toString()));
assertThat(actual.getProperty("rewriteBatchedStatements"), is(Boolean.TRUE.toString()));
assertThat(actual.getProperty("yearIsDateType"), is(Boolean.FALSE.toString()));