FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed bug that pdo connector with pgsql cannot work when using migration. by jatyPeng · Pull Request #7377 · hyperf/hyperf · GitHub

/ hyperf Public

Fixed bug that pdo connector with pgsql cannot work when using migration. - #7377

Merged
limingxinleo merged 4 commits into
hyperf:3.0from
jatyPeng:patch-1
May 12, 2025
Merged

Fixed bug that pdo connector with pgsql cannot work when using migration.#7377
limingxinleo merged 4 commits into
hyperf:3.0from
jatyPeng:patch-1

Conversation

Copy link
Copy Markdown
Contributor

fix: connect方法校验的类型必须是PostgreSQL,然而在之前hyperf/database处理时出来的pdo类型是PDO,导致migration时变更(change)字段时出现报错。 只有变更字段时会直接调用“doctrine/dbal”获得SQL语句,create table等migration动作时都是本仓库完成的,所以直接修改为按照hyperf/database的mysql一样返回PDO类型。经测试,能正常使用。

jatyPeng and others added 4 commits May 10, 2025 09:44
fix: connect方法校验的类型必须是PostgreSQL,然而在之前hyperf/database处理时出来的pdo类型是PDO,导致migration时变更(change)字段时出现报错。 只有变更字段时会直接调用“doctrine/dbal”获得SQL语句,create table等migration动作时都是本仓库完成的,所以直接修改为按照hyperf/database的mysql一样返回PDO类型。经测试,能正常使用。
limingxinleo changed the title Update PostgresDriver.php Fixed bug that pdo connector with pgsql cannot work when using migration. May 12, 2025
limingxinleo merged commit ba7ec7f into hyperf:3.0 May 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL