This is an automated email from the ASF dual-hosted git repository.

panjuan 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 b680bb3  Add useServerPrepStmts=true for IT (#9114)
b680bb3 is described below

commit b680bb36e89041e5233fcc6ae9304d3e746db0db
Author: Liang Zhang <terrym...@163.com>
AuthorDate: Thu Jan 21 13:37:56 2021 +0800

    Add useServerPrepStmts=true for IT (#9114)
---
 .../test/integration/env/datasource/DatabaseEnvironment.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/datasource/DatabaseEnvironment.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/datasource/DatabaseEnvironment.java
index 670323c..b363af5 100644
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/datasource/DatabaseEnvironment.java
+++ 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/datasource/DatabaseEnvironment.java
@@ -71,7 +71,7 @@ public final class DatabaseEnvironment {
             case "H2":
                 return 
"jdbc:h2:mem:test_db;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MySQL";
             case "MySQL":
-                return 
String.format("jdbc:mysql://%s:%s?serverTimezone=UTC&useSSL=false&useLocalSessionState=true&characterEncoding=utf-8",
 host, port);
+                return 
String.format("jdbc:mysql://%s:%s?useServerPrepStmts=true&serverTimezone=UTC&useSSL=false&useLocalSessionState=true&characterEncoding=utf-8",
 host, port);
             case "PostgreSQL":
                 return String.format("jdbc:postgresql://%s:%s/", host, port);
             case "SQLServer":
@@ -94,7 +94,7 @@ public final class DatabaseEnvironment {
             case "H2":
                 return 
String.format("jdbc:h2:mem:%s;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MySQL",
 dataSourceName);
             case "MySQL":
-                return 
String.format("jdbc:mysql://%s:%s/%s?serverTimezone=UTC&useSSL=false&useLocalSessionState=true&characterEncoding=utf-8",
 host, port, dataSourceName);
+                return 
String.format("jdbc:mysql://%s:%s/%s?useServerPrepStmts=true&serverTimezone=UTC&useSSL=false&useLocalSessionState=true&characterEncoding=utf-8",
 host, port, dataSourceName);
             case "PostgreSQL":
                 return String.format("jdbc:postgresql://%s:%s/%s", host, port, 
dataSourceName);
             case "SQLServer":

Reply via email to