Skip to content

feat: 新增 PostgreSQL 支持并修复 PDO 报错#154

Open
feiecho wants to merge 1 commit intoHaoOuBa:masterfrom
feiecho:feiecho
Open

feat: 新增 PostgreSQL 支持并修复 PDO 报错#154
feiecho wants to merge 1 commit intoHaoOuBa:masterfrom
feiecho:feiecho

Conversation

@feiecho
Copy link

@feiecho feiecho commented Sep 5, 2025

概述

原代码我在使用PostgreSQL 会启用主题,浏览器报错:
pg_result_error_field(): Argument #1 ($result) must be of type PgSql\Result, PDOStatement given
本次新增让 functions.phpMySQL / PostgreSQL / SQLite 之间自适应,零配置即可切换数据库。

改动范围

functions.phpthemeConfig() 的数据库初始化段(约 7–46 行)被整体替换,其余代码未动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants