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 d40704089e6 Refactor MySQLTest (#29959)
d40704089e6 is described below
commit d40704089e6eacf4621b0d59712b5154065a6e09
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Feb 2 12:35:57 2024 +0800
Refactor MySQLTest (#29959)
* Refactor MySQLTest
* Fix doc
---
RELEASE-NOTES.md | 2 +-
...e_5.2.0_is_Released,_Bringing_New_Cloud_Native_Possibilities.en.md | 2 +-
.../apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index ef7fca3e606..925c1e2c2bb 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -465,7 +465,7 @@
1. Support parsing ALTER OPERATOR in PostgreSQL
1. Add PostgreSQL Copy Statement
1. Add PostgreSQL Comment Statement
-1. Support listen statement in postgreSQL
+1. Support listen statement in PostgreSQL
1. Support DECLARE cursor statement
1. Add default serverConfig in helm charts
1. Assemble openGauss JDBC Driver into Proxy distribution
diff --git
a/docs/blog/content/material/2022_09_08_Apache_ShardingSphere_5.2.0_is_Released,_Bringing_New_Cloud_Native_Possibilities.en.md
b/docs/blog/content/material/2022_09_08_Apache_ShardingSphere_5.2.0_is_Released,_Bringing_New_Cloud_Native_Possibilities.en.md
index b435b7c8675..a63e00ab57a 100644
---
a/docs/blog/content/material/2022_09_08_Apache_ShardingSphere_5.2.0_is_Released,_Bringing_New_Cloud_Native_Possibilities.en.md
+++
b/docs/blog/content/material/2022_09_08_Apache_ShardingSphere_5.2.0_is_Released,_Bringing_New_Cloud_Native_Possibilities.en.md
@@ -302,7 +302,7 @@ Below are all the update logs of ShardingSphere 5.2.0. To
deliver a better user
- Kernel: Add PostgreSQL Comment Statement
-- Kernel: Support listen statement in postgreSQL
+- Kernel: Support listen statement in PostgreSQL
- Kernel: Support DECLARE cursor statement
diff --git
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
index 59d18801f56..d80055a24e4 100644
---
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
+++
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
@@ -62,12 +62,12 @@ class MySQLTest {
@EnabledInNativeImage
void assertShardingInLocalTransactions() throws SQLException, IOException {
try (
- GenericContainer<?> mySQLContainer = new
GenericContainer<>(DockerImageName.parse("mysql:8.2.0-oracle"))
+ GenericContainer<?> databaseContainer = new
GenericContainer<>(DockerImageName.parse("mysql:8.2.0-oracle"))
.withEnv("MYSQL_DATABASE", DATABASE)
.withEnv("MYSQL_ROOT_PASSWORD", PASSWORD)
.withCreateContainerCmdModifier(
cmd -> cmd.withHostConfig(new
HostConfig().withPortBindings(new
PortBinding(Ports.Binding.bindPort(MYSQL_PORT_ON_HOST), new
ExposedPort(3306)))))) {
- mySQLContainer.start();
+ databaseContainer.start();
beforeAll();
DataSource dataSource =
YamlShardingSphereDataSourceFactory.createDataSource(FileTestUtils.readFromFileURLString("test-native/yaml/databases/mysql.yaml"));
testShardingService = new TestShardingService(dataSource);