Skip to content

Commit c9d282f

Browse files
committed
merge
2 parents bb90ceb + 207c820 commit c9d282f

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
- Fixed an issue where locally stored theme colors and background colors are incompatible with the new version, causing page crashes
1313
- Logs desensitize sensitive data
1414
- Fix the issue of 'CLOB' not displaying specific content [Issue #440](https://github.com/chat2db/Chat2DB/issues/440)
15+
- Fix the problem that non-Select does not display query results
16+
- Fix the problem that Oracle cannot query without schema
17+
- Fix the problem of special type of SQL execution error reporting
18+
- Fix the problem that the test link is successful, but the error is reported when saving the link
19+
20+
21+
1522

1623
## ⭐ 新特性
1724

@@ -25,6 +32,10 @@
2532
- 修复本地存储的主题色、背景色与新版本不兼容时会导致页面崩溃问题
2633
- 日志对敏感数据进行脱敏
2734
- 修复 `CLOB` 不展示具体内容的问题 [Issue #440](https://github.com/chat2db/Chat2DB/issues/440)
35+
- 修复非Select不展示查询结果的问题
36+
- 修复Oracle不带schema无法查询的问题
37+
- 修复特殊类型的SQL执行报错的问题
38+
- 修复测试链接成功,但保存链接报错的问题
2839

2940
# 2.0.11
3041

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package ai.chat2db.server.domain.core.util;
2+
3+
public class H2Functions {
4+
public static String keyGeneratorFunction(String tableName) {
5+
return null;
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package ai.chat2db.server.domain.core.util;
2+
3+
import java.sql.Connection;
4+
import java.sql.SQLException;
5+
import java.util.Arrays;
6+
7+
import org.h2.api.Trigger;
8+
9+
public class H2Triggers implements Trigger {
10+
11+
@Override
12+
public void init(Connection conn, String schemaName, String triggerName,
13+
String tableName, boolean before, int type) throws SQLException {
14+
// Initialization logic, if needed.
15+
}
16+
17+
@Override
18+
public void fire(Connection conn, Object[] oldRow, Object[] newRow)
19+
throws SQLException {
20+
// This method is called when the trigger is executed.
21+
// In this example, let's simply print the new values when a row is inserted.
22+
if (newRow != null) {
23+
System.out.println("New Row Inserted: " + Arrays.toString(newRow));
24+
}
25+
}
26+
27+
@Override
28+
public void close() throws SQLException {
29+
// Cleanup logic, if needed.
30+
}
31+
32+
@Override
33+
public void remove() throws SQLException {
34+
// Logic to execute when the trigger is dropped/removed.
35+
}
36+
}

0 commit comments

Comments
 (0)