Merge branch 'songquanpeng:main' into main

This commit is contained in:
Calcium-Ion authored and GitHub committed 2023-10-30 16:12:09 +08:00
commit f439c4d553
19 files changed
+99 -45

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ func chooseDB() (*gorm.DB, error) {
if strings.HasPrefix(dsn, "postgres://") {
// Use PostgreSQL
common.SysLog("using PostgreSQL as database")
common.UsingPostgreSQL = true
return gorm.Open(postgres.New(postgres.Config{
DSN: dsn,
PreferSimpleProtocol: true, // disables implicit prepared statement usage