Skip to content

Commit a446482

Browse files
authored
Merge pull request OtterMind#1534 from tmlx1990/pg
Fix:PostgreSQL中DECIMAL、NUMERIC没有小数位问题。
2 parents 31e9b0f + 97cf17f commit a446482

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Chat2DB
1010

11-
**English** | [中文](README_CN.md)· [Changelog](CHANGELOG.md) · [Doc](https://docs./) · [Report Bug](https://github.com/chat2db/Chat2DB/issues) · [PR](https://github.com/chat2db/Chat2DB/pulls)
11+
**English** | [中文](README_CN.md)· [Changelog](CHANGELOG.md) · [Doc](https://github.com/chat2db/Chat2db-website-old/blob/main/docs/index.md) · [Report Bug](https://github.com/chat2db/Chat2DB/issues) · [PR](https://github.com/chat2db/Chat2DB/pulls)
1212

1313
</div>
1414

@@ -65,6 +65,8 @@
6565
- huggingface🤗:[Chat2DB-SQL-7B](https://huggingface.co/Chat2DB/Chat2DB-SQL-7B)
6666
- modelscope:[Chat2DB-SQL-7B](https://modelscope.cn/models/Chat2DB/Chat2DB-SQL-7B/summary)
6767

68+
### 🎁🎁🎁 Deploy the InternLM model on Chat2DB
69+
Thanks to [InternLM](https://github.com/InternLM/InternLM) for the strong support for this project. In the custom models of this project, multiple model weights from InternLM can be integrated. For more details, please refer to [chat2db-internlm-deploy](https://github.com/chat2db/chat2db-internlm-deploy)
6870

6971
## 🚀 Supported databases
7072
Chat2DB Pro supports all the following databases, including the most requested Redis feature.

README_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
- huggingface🤗:[Chat2DB-SQL-7B](https://huggingface.co/Chat2DB/Chat2DB-SQL-7B)
6767
- modelscope:[Chat2DB-SQL-7B](https://modelscope.cn/models/Chat2DB/Chat2DB-SQL-7B/summary)
6868

69+
### 🎁🎁🎁 在Chat2DB上即成InternLM模型
70+
感谢InternLM对本项目的大力支持,在本项目中的自定义模型中,可以集成InternLM的多个模型权重,具体请参考[chat2db-internlm-deploy](https://github.com/chat2db/chat2db-internlm-deploy)
6971

7072
## 🚀 支持的数据库
7173
Chat2DB Pro支持以下所有数据库,包括备受期待的Redis功能。

chat2db-server/chat2db-plugins/chat2db-postgresql/src/main/java/ai/chat2db/plugin/postgresql/type/PostgreSQLColumnTypeEnum.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public enum PostgreSQLColumnTypeEnum implements ColumnBuilder {
2323
CIDR("CIDR", false, false, true, false, false, false, true, true, false, false),
2424
CIRCLE("CIRCLE", false, false, true, false, false, false, true, true, false, false),
2525
DATE("DATE", false, false, true, false, false, false, true, true, false, false),
26-
DECIMAL("DECIMAL", true, false, true, false, false, false, true, true, false, false),
26+
DECIMAL("DECIMAL", true, true, true, false, false, false, true, true, false, false),
2727
FLOAT4("FLOAT4", false, false, true, false, false, false, true, true, false, false),
2828
FLOAT8("FLOAT8", false, false, true, false, false, false, true, true, false, false),
2929
INET("INET", false, false, true, false, false, false, true, true, false, false),
@@ -37,7 +37,7 @@ public enum PostgreSQLColumnTypeEnum implements ColumnBuilder {
3737
LSEG("LSEG", false, false, true, false, false, false, true, true, false, false),
3838
MACADDR("MACADDR", false, false, true, false, false, false, true, true, false, false),
3939
MONEY("MONEY", false, false, true, false, false, false, true, true, false, false),
40-
NUMERIC("NUMERIC", true, false, true, false, false, false, true, true, false, false),
40+
NUMERIC("NUMERIC", true, true, true, false, false, false, true, true, false, false),
4141
PATH("PATH", false, false, true, false, false, false, true, true, false, false),
4242
POINT("POINT", false, false, true, false, false, false, true, true, false, false),
4343
POLYGON("POLYGON", false, false, true, false, false, false, true, true, false, false),

0 commit comments

Comments
 (0)