This commit is contained in:
Looly 2025-04-11 09:55:52 +08:00
parent 02cd825a2d
commit 5c66079f15
4 changed files with 9 additions and 4 deletions

View File

@ -2,10 +2,11 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.38(2025-04-08)
# 5.8.38(2025-04-11)
### 🐣新特性
* 【core 】 `PathUtil#del`增加null检查pr#1331@Gitee
* 【db 】 增加SAP HANA识别及方言pr#3914@Github
### 🐞Bug修复

View File

@ -188,7 +188,7 @@
<dependency>
<groupId>com.sap.cloud.db.jdbc</groupId>
<artifactId>ngdbc</artifactId>
<version>2.24.6</version>
<version>2.24.7</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -21,7 +21,11 @@ import java.util.List;
* @author daoyou.dev
*/
public class HanaDialect extends AnsiSqlDialect {
private static final long serialVersionUID = 1L;
/**
* 构造
*/
public HanaDialect() {
wrapper = new Wrapper('"');
}

View File

@ -1,7 +1,6 @@
package cn.hutool.db;
import cn.hutool.core.lang.Console;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@ -16,7 +15,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
* @author daoyou.dev
*/
public class HanaTest {
@BeforeAll
//@BeforeAll
public static void createTable() throws SQLException {
Db db = Db.use("hana");
long count = db.count("SELECT * FROM SYS.TABLES WHERE TABLE_NAME = ? AND SCHEMA_NAME = CURRENT_SCHEMA", "user");
@ -77,6 +76,7 @@ public class HanaTest {
}
@Test
@Disabled
public void upsertTest() throws SQLException {
DbUtil.setReturnGeneratedKeyGlobal(false);
Db db = Db.use("hana");