Skip to content

Commit

Permalink
- Fix the issue of 'CLOB' not displaying specific content [Issue #440](
Browse files Browse the repository at this point in the history
  • Loading branch information
chat2db-jerry committed Aug 13, 2023
1 parent ef40737 commit d745b3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 2.0.12

## 🐞 Bug Fixes

- Fix the issue of 'CLOB' not displaying specific content [Issue #440](https://github.com/chat2db/Chat2DB/issues/440)

## 🐞 问题修复

- 修复 `CLOB` 不展示具体内容的问题 [Issue #440](https://github.com/chat2db/Chat2DB/issues/440)

# 2.0.11

## 🐞 Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static String getResultSetValue(ResultSet rs, int index) throws SQLExcept
return "(BLOB " + blob.length() + ")";
}
if (obj instanceof Clob clob) {
return "(CLOB " + clob.length() + ")";
return clob.getSubString(1, Math.toIntExact(clob.length()));
}
if (obj instanceof Timestamp timestamp) {
return Objects.toString(timestamp);
Expand Down

0 comments on commit d745b3c

Please sign in to comment.