You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2024/09/26 08:15:23 UTC
(shardingsphere) branch master updated: Fix openGauss savepoint test case (#33010)
This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 9c26700cafa Fix openGauss savepoint test case (#33010)
9c26700cafa is described below
commit 9c26700cafa92c47f445795a3681e260db8cfce4
Author: ZhangCheng <ch...@apache.org>
AuthorDate: Thu Sep 26 16:15:17 2024 +0800
Fix openGauss savepoint test case (#33010)
---
.../e2e/transaction/cases/savepoint/OpenGaussSavePointTestCase.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/savepoint/OpenGaussSavePointTestCase.java b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/savepoint/OpenGaussSavePointTestCase.java
index 428ac3bb4bc..545bafed6cb 100644
--- a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/savepoint/OpenGaussSavePointTestCase.java
+++ b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/savepoint/OpenGaussSavePointTestCase.java
@@ -21,7 +21,7 @@ import lombok.SneakyThrows;
import org.apache.shardingsphere.test.e2e.transaction.engine.base.TransactionContainerComposer;
import org.apache.shardingsphere.test.e2e.transaction.engine.base.TransactionTestCase;
import org.apache.shardingsphere.test.e2e.transaction.engine.constants.TransactionTestConstants;
-import org.postgresql.jdbc.PSQLSavepoint;
+import org.opengauss.jdbc.PSQLSavepoint;
import java.sql.Connection;
import java.sql.SQLException;
@@ -49,7 +49,7 @@ public final class OpenGaussSavePointTestCase extends BaseSavePointTestCase {
private void assertSavepointNotInTransaction() {
try (Connection connection = getDataSource().getConnection()) {
assertThrows(SQLException.class, () -> connection.setSavepoint("point"));
- assertThrows(SQLException.class, () -> connection.rollback(new org.postgresql.jdbc.PSQLSavepoint("point1")));
+ assertThrows(SQLException.class, () -> connection.rollback(new PSQLSavepoint("point1")));
assertThrows(SQLException.class, () -> connection.releaseSavepoint(new PSQLSavepoint("point1")));
}
}