Skip to content

Commit afbbf44

Browse files
authored
Merge pull request #12 from LiXinnnnnn/patch-1
Update DemoSQLConfig.java
2 parents 7d97b09 + 70c588c commit afbbf44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/DemoSQLConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public String getDBUri() {
165165
return "jdbc:mysql://localhost:3306?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8"; //TODO 改成你自己的,TiDB 可以当成 MySQL 使用,默认端口为 4000
166166
}
167167
if (isPostgreSQL()) {
168-
return "jdbc:postgresql://localhost:5432/postgres"; //TODO 改成你自己的
168+
return "jdbc:postgresql://localhost:5432/postgres?stringtype=unspecified"; //TODO 改成你自己的
169169
}
170170
if (isSQLServer()) {
171171
return "jdbc:jtds:sqlserver://localhost:1433/pubs;instance=SQLEXPRESS"; //TODO 改成你自己的

0 commit comments

Comments
 (0)