mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
gts
This commit is contained in:
parent
02cd825a2d
commit
5c66079f15
@ -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修复
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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('"');
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user