This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 3711c479870 Removes utility functions that are no longer used due to
ClickHouse's nativeTest refactoring (#32577)
3711c479870 is described below
commit 3711c479870cb0f66bb055b64af5afd53f03ec9d
Author: Ling Hengqian <[email protected]>
AuthorDate: Sun Aug 18 14:57:40 2024 +0800
Removes utility functions that are no longer used due to ClickHouse's
nativeTest refactoring (#32577)
---
.../test/natived/jdbc/commons/TestShardingService.java | 2 +-
.../jdbc/commons/repository/AddressRepository.java | 16 ----------------
2 files changed, 1 insertion(+), 17 deletions(-)
diff --git
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/TestShardingService.java
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/TestShardingService.java
index 72b78f24e46..97d5a2236e2 100644
---
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/TestShardingService.java
+++
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/TestShardingService.java
@@ -220,7 +220,7 @@ public final class TestShardingService {
public void deleteDataInHive() throws SQLException {
long count = 1L;
for (int i = 1; i <= 10; i++) {
- addressRepository.deleteInHive(count++);
+ addressRepository.delete(count++);
}
}
diff --git
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/repository/AddressRepository.java
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/repository/AddressRepository.java
index 48dba1585cc..e8ddf3c3c2f 100644
---
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/repository/AddressRepository.java
+++
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/commons/repository/AddressRepository.java
@@ -152,22 +152,6 @@ public final class AddressRepository {
}
}
- /**
- * delete by id.
- *
- * @param id id
- * @throws SQLException SQL exception
- */
- public void deleteInHive(final Long id) throws SQLException {
- String sql = "DELETE FROM t_address WHERE address_id=?";
- try (
- Connection connection = dataSource.getConnection();
- PreparedStatement preparedStatement =
connection.prepareStatement(sql)) {
- preparedStatement.setLong(1, id);
- preparedStatement.executeUpdate();
- }
- }
-
/**
* delete by id in ClickHouse.
*